Documentation
¶
Index ¶
Constants ¶
View Source
const ( HEARTBEAT = "HEARTBEAT" VOTE_REQUEST_RECEIVED = "VOTE_REQUEST_RECEIVED" VOTE_RECEIVED = "VOTE_RECEIVED" LOG_ENTRY_REPLICATED = "LOG_ENTRY_REPLICATED" LOG_ENTRY_COMMITTED = "LOG_ENTRY_COMMITTED" LEADER_SUSPECTED = "LEADER_SUSPECTED" FOLLOWER_SUSPECTED = "FOLLOWER_SUSPECTED" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
func (*Message) FreeMessage ¶
func (message *Message) FreeMessage()
func (*Message) GetResponse ¶
type MessageType ¶
type MessageType int
type NetworkLayer ¶
func NewNetworkLayer ¶
func (*NetworkLayer) Close ¶
func (networkLayer *NetworkLayer) Close() error
func (*NetworkLayer) ResetConn ¶
func (networkLayer *NetworkLayer) ResetConn()
func (*NetworkLayer) RunAsync ¶
func (networkLayer *NetworkLayer) RunAsync(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.