Raft::StatusSource
The read-only surface a status/metrics endpoint needs from a node.
T-free by construction — every method here is independent of the
state-machine command type, which lets HTTP::StatusHandler be a
concrete (non-generic) class.
Included by Raft::Node(T). The threading contract still applies:
these read mutable node state without locks, so callers outside the
node's owning fiber must arrange their own safety (e.g. run the HTTP
server in the same execution context).
Instance methods
commit_index
Sourcecurrent_term
Sourcefirst_log_index
Sourceid
Sourcelast_log_index
Sourcelast_log_term
Sourceleader_id
Sourcemetrics
Sourcepeers
Sourcerole
Sourcesegment_count
Sourcesnapshot_index
Sourcesnapshot_size_bytes
Source