Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
id
Source
learner?
Source
role
Source
role=
(role :
Role
)
Source
to_io
(io :
IO
, format :
IO::ByteFormat
=
IO::ByteFormat::LittleEndian
)
Source
voter?
Source
Nested types
Raft::Peer::Role