struct

Raft::Peer

Inherits Struct < Value < Object

Constructors

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : self
Source
new(id : NodeID, role : Role = Role::Voter, address : String = "")
Source

Instance methods

address
Source
learner?
Source
role
Source
role=(role : Role)
Source
voter?
Source

Nested types