module Raft::RPC

Overview

Raft RPC message definitions and transport types.

All messages are standalone structs combined into the Message union alias. Each struct has a #type method returning its Type enum tag and a getter term for the Raft term. Boolean fields use getter? per Crystal convention. Serialization is handled by RPC::Codec, not per-struct methods.

Defined in:

raft/rpc.cr
raft/rpc/codec.cr