raft 0.1.0
Loading...
Searching...
No Matches
Public Attributes | List of all members
raft::Status Struct Reference

A consistent snapshot of the server's state. More...

#include <server.hpp>

Public Attributes

bool isLeader
 Whether this server is currently the leader.
 
std::optional< Peerleader
 The current leader peer information, or std::nullopt if unknown.
 
uint64_t term
 The current term of the server.
 
uint64_t commitIndex
 The index of the last committed log entry.
 
uint64_t logByteCount
 The total size of the log in bytes.
 

Detailed Description

A consistent snapshot of the server's state.


The documentation for this struct was generated from the following file: