struct
Raft::RPC::RequestVote
- Raft::RPC::RequestVote
- Struct
- Value
- Object
Overview
Sent by a candidate to request a vote from a peer during an election.
Defined in:
raft/rpc.crConstructors
Instance Method Summary
-
#candidate_id : String
The ID of the candidate requesting the vote.
-
#last_log_index : UInt64
Index of the candidate's last log entry.
-
#last_log_term : UInt64
Term of the candidate's last log entry.
-
#term : UInt64
The candidate's current term.
- #type : Type
Constructor Detail
def self.new(term : UInt64, candidate_id : String, last_log_index : UInt64, last_log_term : UInt64)
#