Module raft_engine::internals
source · Expand description
A selective view of key components in Raft Engine. Exported under the
internals feature only.
Modules
- A set of public utilities used for interacting with log files.
Structs
- A factory of
ReplayMachines that can be default constructed. - Location of a log entry.
- A logical pointer to a chunk of log file data.
- A unique identifier for a log file.
- A
PipeLogimplementation that stores data in filesystem. DualPipesfactory that can also recover other customized memory states.- In-memory storage for Raft Groups.
- A collection of
MemTables. - Container for basic settings on recovery.
- An iterator over the variants of Version
- A synchronizer of
Writers. - A collection of writers. User thread (leader) that receives a
WriteGroupis responsible for processing its containing writers. - An iterator over the
Writers in oneWriteGroup.
Enums
- The type of log queue.
- Version of log file format.
Traits
EventListenercontains a set of callback functions that will be notified on specific events inside Raft Engine.FileNameExtoffers file name formatting extensions toFileId.- A
PipeLogserves reads and writes over multiple queues of log files. - Some bytes whose value might be dependent on the file it is written to.
ReplayMachineis a type of deterministic state machine that obeys associative law.
Functions
Type Aliases
- Sequence number for log file. It is unique within a log queue.