# Functions

NewCluster constructs a new cluster with all Node RPC interfaces.
NewNode constructor.
NewReplicatedLog constructs a ReplicatedLog.
NewStatemachine returns a new Statemachine in the FOLLOWER State.

# Constants

CANDIDATE is the candidate state.
FOLLOWER is the start state.
LEADER is the leader state.

# Structs

Cluster knows the RPC interface of all members.
Configuration contains setup information for initializing a remote cluster.
Node is a node in a Raft consensus cluster.
ReplicatedLog is the transactional log for RAFT.
Statemachine encapsulates the current state and ensures only valid state changes are executed.

# Interfaces

NodeRPC is the remote interface for Node to Node communication in the RAFT cluster.

# Type aliases

State represents the internal raft state.