Expand description
Raft-based election framework.
Structs§
- Election
- The election API.
- Hard
State - Election persistent state.
- Heartbeat
Request - Heartbeat request.
- Heartbeat
Response - Heartbeat response.
- Metrics
- A set of metrics describing the current state of election.
- Metrics
Watcher - The metrics watcher of the node.
- Move
Leader Request - MoveLeader request.
- Options
- The election runtime configurations.
- Options
Builder - The builder of election runtime configurations.
- Vote
Request - Vote request.
- Vote
Response - Vote response.
Enums§
- Error
- Error related to election.
- Event
- The event of election.
- Initial
Mode - Initial mode when initialize election.
- Quorum
- The minimum number of votes that a node has to obtain in order to be the leader.
- State
- The state of the node.
- Vote
Result - Vote result.
Traits§
- Election
Type - A trait defining application specific data type for election.
- Event
Handler - The event handler of election.
- NodeId
- Unique id used to identify the node.
- Rpc
- RPC interfaces used by election.
- Storage
- Storage interfaces used by election.
- Task
Spawner - Spawner for internal short-time task.
- Thread
- Thread used for election main thread.
- Vote
Factor - Application specific data involved in voting.
Type Aliases§
- Result
- The result of election process.