Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPC ¶
type RPC struct {
Command interface{}
Reader io.Reader // Only when installing a snapshot.
ResponseChannel chan<- RPCResponse
}
type RPCResponse ¶
type RPCResponse struct {
Response interface{}
Error error
}
type RaftState ¶
type RaftState uint32
const ( // Follower is the state of an established node receiving it's state from the leader. Follower RaftState = iota // Candidate is the state of a node in transition. Candidate // Leader is the state of the node that dictates the state of the cluster. Leader // Shutdown is the terminal state of a raft node. Shutdown )
Click to show internal directories.
Click to hide internal directories.