# 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.
NewMemoryStorage creates an empty MemoryStorage.
NewRawNode returns a new RawNode given configuration and a list of raft peers.
RestartNode is similar to StartNode but does not take a list of peers.
StartNode returns a new Node given configuration and a list of raft peers.
# 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.
ErrSnapOutOfDate is returned by Storage.CreateSnapshot when a requested index is older than the existing snapshot.
ErrStepLocalMsg is returned when try to step a local raft message.
ErrStepPeerNotFound is returned when try to step a response message but there is no peer found in raft.prs for that node.
ErrStopped is returned by methods on Nodes that have been stopped.
# Structs
Config contains the parameters to start a raft.
DefaultLogger is a default implementation of the Logger interface.
MemoryStorage implements the Storage interface backed by an in-memory array.
Progress represents a follower’s progress in the view of the leader.
RawNode is a thread-unsafe Node.
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
EntryFormatter can be implemented by the application to provide human-readable formatting of entry data.
StateType represents the role of a node in a cluster.