# Functions
CleanupRaft moves the current data folder to a backup location.
LastStateRaw returns the bytes of the last snapshot stored, its metadata, and a flag indicating whether any snapshot was found.
NewConsensus builds a new ClusterConsensus component using Raft.
OfflineState state returns a cluster state by reading the Raft data and writing it to the given datastore which is then wrapped as a state.State.
SnapshotSave saves the provided state to a snapshot in the raft data path.
# Variables
Configuration defaults.
Configuration defaults.
Configuration defaults.
from "/raft".
Configuration defaults.
Configuration defaults.
Configuration defaults.
RaftLogCacheSize is the maximum number of logs to cache in-memory.
RaftMaxSnapshots indicates how many snapshots to keep in the consensus data folder.
# Structs
Config allows to configure the Raft Consensus component for ipfs-cluster.
Consensus handles the work of keeping a shared-state between the peers of an IPFS Cluster, as well as modifying that state and applying any updates in a thread-safe manner.
LogOp represents an operation for the OpLogConsensus system.
# Type aliases
LogOpType expresses the type of a consensus Operation.