ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
consensus_coordinator Struct Reference

Coordinates consensus work for a session: it tracks the participant topology, election state, callbacks, and messages waiting to be processed. The session owns the coordinator and tears down its queues and synchronization objects with it. More...

Data Fields

uint8_t my_id [SESSION_ID_SIZE]
const consensus_topology_t * topology
consensus_state_t * state
consensus_election_func_t election_func
void * election_context
consensus_metrics_provider_fn metrics_provider
void * metrics_context
uint64_t last_round_start_ns
uint32_t next_round_id
uint64_t collection_deadline_ns
uint8_t stored_host_id [SESSION_ID_SIZE]
uint8_t stored_backup_id [SESSION_ID_SIZE]
bool has_stored_result

Detailed Description

Coordinates consensus work for a session: it tracks the participant topology, election state, callbacks, and messages waiting to be processed. The session owns the coordinator and tears down its queues and synchronization objects with it.

Coordinates consensus work for a session: it tracks the participant topology, election state, callbacks, and messages waiting to be processed. The session owns the coordinator and tears down its queues and synchronization objects with it.

Definition at line 33 of file coordinator.c.

Field Documentation

◆ collection_deadline_ns

uint64_t consensus_coordinator::collection_deadline_ns

Definition at line 45 of file coordinator.c.

Referenced by consensus_coordinator_on_collection_start().

◆ election_context

void* consensus_coordinator::election_context

Definition at line 38 of file coordinator.c.

Referenced by consensus_coordinator_create().

◆ election_func

consensus_election_func_t consensus_coordinator::election_func

Definition at line 37 of file coordinator.c.

Referenced by consensus_coordinator_create().

◆ has_stored_result

bool consensus_coordinator::has_stored_result

◆ last_round_start_ns

uint64_t consensus_coordinator::last_round_start_ns

◆ metrics_context

void* consensus_coordinator::metrics_context

Definition at line 40 of file coordinator.c.

Referenced by consensus_coordinator_set_metrics_provider().

◆ metrics_provider

consensus_metrics_provider_fn consensus_coordinator::metrics_provider

Definition at line 39 of file coordinator.c.

Referenced by consensus_coordinator_set_metrics_provider().

◆ my_id

uint8_t consensus_coordinator::my_id[SESSION_ID_SIZE]

◆ next_round_id

uint32_t consensus_coordinator::next_round_id

◆ state

◆ stored_backup_id

uint8_t consensus_coordinator::stored_backup_id[SESSION_ID_SIZE]

◆ stored_host_id

uint8_t consensus_coordinator::stored_host_id[SESSION_ID_SIZE]

◆ topology

const consensus_topology_t* consensus_coordinator::topology

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