enum Raft::Log::EntryType

Overview

The type of a log entry, stored as a single byte on the wire.

Defined in:

raft/log/entry.cr

Enum Members

Noop = 0_u8

No-op entry. Appended by a new leader to establish commit authority.

Op = 1_u8

Client command. Applied to the state machine when committed.

Config = 2_u8

Cluster membership change. Updates the peer list when committed.

Instance Method Summary

Instance Method Detail

def config? #

Returns true if this enum value equals Config


[View source]
def noop? #

Returns true if this enum value equals Noop


[View source]
def op? #

Returns true if this enum value equals Op


[View source]