ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
session_consensus_callbacks_t Struct Reference

Callbacks for consensus operations. More...

#include <src/common/session/consensus.h>

Data Fields

session_consensus_send_packet_fn send_packet
 Send packet callback.
 
session_consensus_on_election_fn on_election
 Election result callback.
 
session_consensus_get_metrics_fn get_metrics
 Measure metrics callback.
 
session_consensus_election_fn election
 Custom election callback (optional, NULL = use default)
 
void * context
 Opaque context passed to all callbacks.
 

Detailed Description

Callbacks for consensus operations.

Modes provide these to integrate consensus with their specific transport and metric collection mechanisms.

Definition at line 119 of file consensus.h.

Field Documentation

◆ context

void* session_consensus_callbacks_t::context

Opaque context passed to all callbacks.

Definition at line 124 of file consensus.h.

Referenced by consensus_get_discovery_callbacks(), and session_consensus_create().

◆ election

session_consensus_election_fn session_consensus_callbacks_t::election

Custom election callback (optional, NULL = use default)

Definition at line 123 of file consensus.h.

Referenced by consensus_get_discovery_callbacks(), and session_consensus_create().

◆ get_metrics

session_consensus_get_metrics_fn session_consensus_callbacks_t::get_metrics

Measure metrics callback.

Definition at line 122 of file consensus.h.

Referenced by consensus_get_discovery_callbacks(), and session_consensus_create().

◆ on_election

session_consensus_on_election_fn session_consensus_callbacks_t::on_election

Election result callback.

Definition at line 121 of file consensus.h.

Referenced by consensus_get_discovery_callbacks(), and session_consensus_create().

◆ send_packet

session_consensus_send_packet_fn session_consensus_callbacks_t::send_packet

Send packet callback.

Definition at line 120 of file consensus.h.

Referenced by consensus_get_discovery_callbacks(), and session_consensus_create().


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