class Raft::Node

Defined in:

raft.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int32) #

[View source]

Instance Method Detail

def id : Int32 #

[View source]
def peers=(peers : Array(Raft::Node)) #

[View source]
def request_vote(term : Int32, candidate_id : Int32) #

[View source]
def run_election_timer #

[View source]
def start_election #

[View source]