Get desktop application:
View/edit binary Protocol Buffers messages
ConfChange is the data that attach on entry with EntryConfChange type
node will be add/remove
Used in:
, ,ConfState contains the current membership information of the raft group
Used in:
all node id
The entry is a type of change that needs to be applied. It contains two data fields. While the fields are built into the model; their usage is determined by the entry_type. For normal entries, the data field should contain the data change that should be applied. The context field can be used for any contextual data that might be relevant to the application of the data. For configuration changes, the data will contain the ConfChange message and the context will provide anything needed to assist the configuration change. The context is for the user to set and use in this case.
Used in:
Used in:
HardState contains the state of a node need to be peristed, including the current term, commit index and the vote record
Used in:
Used in:
Some MessageType defined here are local messages which not come from the network, but should also use the Step method to handle
Used in:
'MessageType_MsgHup' is a local message used for election. If an election timeout happened, the node should pass 'MessageType_MsgHup' to its Step method and start a new election.
'MessageType_MsgBeat' is a local message that signals the leader to send a heartbeat of the 'MessageType_MsgHeartbeat' type to its followers.
'MessageType_MsgPropose' is a local message that proposes to append data to the leader's log entries.
'MessageType_MsgAppend' contains log entries to replicate.
'MessageType_MsgAppendResponse' is response to log replication request('MessageType_MsgAppend').
'MessageType_MsgRequestVote' requests votes for election.
'MessageType_MsgRequestVoteResponse' contains responses from voting request.
'MessageType_MsgSnapshot' requests to install a snapshot message.
'MessageType_MsgHeartbeat' sends heartbeat from leader to its followers.
'MessageType_MsgHeartbeatResponse' is a response to 'MessageType_MsgHeartbeat'.
'MessageType_MsgTransferLeader' requests the leader to transfer its leadership.
'MessageType_MsgTimeoutNow' send from the leader to the leadership transfer target, to let the transfer target timeout immediately and start a new election.
Used in:
SnapshotMetadata contains the log index and term of the last log applied to this Snapshot, along with the membership information of the time the last log applied.
Used in: