raft 0.1.0
|
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< Peer > | leader |
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. | |
A consistent snapshot of the server's state.