Raft::RPC
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.
Nested types
- Raft::RPC::AppendEntries
- Raft::RPC::AppendEntriesResponse
- Raft::RPC::Codec
- Raft::RPC::ConfigUpdate
- Raft::RPC::Envelope
- Raft::RPC::ErrorMessage
- Raft::RPC::Handshake
- Raft::RPC::InstallSnapshot
- Raft::RPC::InstallSnapshotResponse
- Raft::RPC::Message
- Raft::RPC::Ping
- Raft::RPC::Pong
- Raft::RPC::PreVote
- Raft::RPC::PreVoteResponse
- Raft::RPC::RequestVote
- Raft::RPC::RequestVoteResponse
- Raft::RPC::Type