struct Raft::RPC::RequestVote

Overview

Sent by a candidate to request a vote from a peer during an election.

Defined in:

raft/rpc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(term : UInt64, candidate_id : String, last_log_index : UInt64, last_log_term : UInt64) #

[View source]

Instance Method Detail

def candidate_id : String #

The ID of the candidate requesting the vote.


[View source]
def last_log_index : UInt64 #

Index of the candidate's last log entry.


[View source]
def last_log_term : UInt64 #

Term of the candidate's last log entry.


[View source]
def term : UInt64 #

The candidate's current term.


[View source]
def type : Type #

[View source]