Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricPrefix = "nexus." NodeIdDefaultTag = "nexusNode" )
Variables ¶
This section is empty.
Functions ¶
func NewRaftNode ¶
NewRaftNode initiates a raft instance and returns a committed log entry channel and error channel. Proposals for log updates are sent over the provided the proposal channel. All log entries are replayed over the commit channel, followed by a nil message (to indicate the channel is current), then new log entries. To shutdown, close proposeC and read errorC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.