Raft v0.2.1 Raft.Log.Metadata

This module defines the metadata for a raft node. This data is persisted to disk as described in the paper.

Link to this section Summary

Types

Latest term the server has seen. Defaults to 0 on boot and increases monotonically

t()

Metadata struct

The candidate id that was voted for this term. Defaults to :none if there has been no vote this term

Link to this section Types

Link to this type current_term()
current_term() :: non_neg_integer()

Latest term the server has seen. Defaults to 0 on boot and increases monotonically.

Link to this type t()
t() :: %Raft.Log.Metadata{term: current_term(), voted_for: voted_for()}

Metadata struct.

Link to this type voted_for()
voted_for() :: :none | atom()

The candidate id that was voted for this term. Defaults to :none if there has been no vote this term.