package
2.1.7+incompatible
Repository: https://github.com/matrixorigin/dragonboat.git
Documentation: pkg.go.dev
# Functions
ClusterID returns a human friendly form of ClusterID for logging purposes.
IsLocalMessageType returns a boolean value indicating whether the specified message type is a local message type.
LaunchPeer starts or restarts a Raft node.
NodeID returns a human friendly form of NodeID for logging purposes.
# Constants
NoLeader is the flag used to indcate that there is no leader or the leader is unknown.
NoNode is the flag used to indicate that the node id field is not set.
RaftLogTypeName is the type name of the raft log.
# Variables
ErrCompacted is the error returned to indicate that the requested entries are no longer in the LogDB due to compaction.
ErrSnapshotOutOfDate is the error returned to indicate that the concerned snapshot is considered as out of date.
ErrUnavailable is the error returned to indicate that requested entries are not available in LogDB.
# Structs
Peer is the interface struct for interacting with the underlying Raft protocol implementation.
PeerAddress is the basic info for a peer in the Raft cluster.
Status is the struct that captures the status of a raft node.
# Interfaces
ILogDB is a read-only interface to the underlying persistent storage to allow the raft package to access raft state, entries, snapshots stored in the persistent storage.
# Type aliases
State is the state of a raft node defined in the raft paper, possible states are leader, follower, candidate and observer.