struct

Raft::Log::Entry

Inherits Struct < Value < Object

A single entry in the Raft log.

Entries are 1-indexed. Each entry records the Raft term in which it was created, its type, and an opaque data payload.

Constructors

new(index : UInt64, term : UInt64, entry_type : EntryType, data : Bytes = Bytes.empty)
Source

Instance methods

data

The opaque payload. For Op entries this is the client command; for Config entries this is the serialized peer list.

Source
entry_type

The type of this entry (Noop, Op, or Config).

Source
index

The 1-based position of this entry in the log.

Source
term

The Raft term when this entry was created.

Source