# Packages
Package raftpb is a generated protocol buffer package.
# Functions
DescribeEntry returns a concise human-readable description of an Entry for debugging.
DescribeMessage returns a concise human-readable description of a Message for debugging.
IsEmptyHardState returns true if the given HardState is empty.
IsEmptySnap returns true if the given Snapshot is empty.
No description provided by the author
No description provided by the author
NewMemoryStorage creates an empty MemoryStorage.
RestartNode is identical to StartNode but does not take a list of peers.
StartNode returns a new Node given a unique raft id, a list of raft peers, and the election and heartbeat timeouts in units of ticks.
# Constants
None is a placeholder node ID used when there is no leader.
Possible values for StateType.
Possible values for StateType.
Possible values for StateType.
# Variables
ErrCompacted is returned by Storage.Entries/Compact when a requested index is unavailable because it predates the last snapshot.
ErrStopped is returned by methods on Nodes that have been stopped.
No description provided by the author
# Structs
MemoryStorage implements the Storage interface backed by an in-memory array.
No description provided by the author
Ready encapsulates the entries and messages that are ready to read, be saved to stable storage, committed or sent to other peers.
SoftState provides state that is useful for logging and debugging.
# Type aliases
StateType represents the role of a node in a cluster.