# Functions
GetSnapshotDirName returns the snapshot dir name for the snapshot captured at the specified index.
GetSnapshotFilename returns the filename of the snapshot file.
NewDoubleFixedPartitioner creates a new DoubleFixedPartitioner instance.
NewEnv creates and returns a new server Env object.
NewFixedPartitioner creates a new FixedPartitioner instance.
NewInMemRateLimiter creates and returns a rate limiter instance.
NewMessageQueue creates a new MessageQueue instance.
NewRateLimiter creates and returns a rate limiter instance.
NewSSEnv creates and returns a new SSEnv instance.
# Constants
ChangeTickThreashold is the minimum number of ticks required to update the state of the rate limiter.
ConnectionEstablished ...
ConnectionFailed ...
LogCompacted ...
LogDBCompacted ...
MembershipChanged ...
NodeDeleted.
NodeHostShuttingDown ...
NodeReady ...
NodeUnloaded ...
NoLeader is the flag used to indcate that there is no leader or the leader is unknown.
ReceivingMode is the mode used when receiving snapshots from remote nodes.
SendSnapshotAborted ...
SendSnapshotCompleted ...
SendSnapshotStarted ...
SnapshotCompacted ...
SnapshotCreated ...
SnapshotMode is the mode used when taking snapshotting.
SnapshotReceived ...
SnapshotRecovered ...
# Variables
ErrDefaultNodeRegistryEnabledChanged is the error used to indicate that the DefaultNodeRegistryEnabled setting has changed.
ErrDeploymentIDChanged is the error used to indicate that the deployment ID changed.
ErrDirMarkedAsDeleted is the error used to indicate that the directory has been marked as deleted and can not be used again.
ErrHardSettingChanged indicates that one or more of the hard settings changed.
ErrHardSettingsChanged indicates that hard settings changed.
ErrHostnameChanged is the error used to indicate that the hostname changed.
ErrIncompatibleData indicates that the specified data directory contains incompatible data.
ErrLockDirectory indicates that obtaining exclusive lock to the data directory failed.
ErrLogDBBrokenChange indicates that your NodeHost failed to be created as your code is hit by the LogDB breaking change introduced in v3.0.
ErrLogDBType is the error used to indicate that the LogDB type changed.
ErrNodeHostIDChanged indicates that NodeHostID changed.
ErrNotOwner indicates that the data directory belong to another NodeHost instance.
ErrSnapshotOutOfDate is the error to indicate that snapshot is out of date.
GenSnapshotDirNameRe is the regex of temp snapshot directory name used when generating snapshots.
MetadataFilename is the filename of a snapshot's metadata file.
RecvSnapshotDirNameRe is the regex of temp snapshot directory name used when receiving snapshots from remote NodeHosts.
SnapshotDirNamePartsRe is used to find the index value from snapshot folder name.
SnapshotDirNameRe is the regex of snapshot names.
SnapshotFileSuffix is the filename suffix of a snapshot file.
# Structs
CampaignInfo contains campaign info.
DoubleFixedPartitioner is the IPartitioner with two fixed capacity and naive partitioning strategy.
Env is the server environment for NodeHost.
FixedPartitioner is the IPartitioner with fixed capacity and naive partitioning strategy.
InMemRateLimiter is the struct used to keep tracking the in memory rate log size.
LeaderInfo contains leader info.
MessageQueue is the queue used to hold Raft messages.
ProposalInfo contains info on proposals.
RateLimiter is the struct used to keep tracking consumed memory size.
ReadIndexInfo contains info on read index requests.
ReplicationInfo contains info of a replication message.
SnapshotInfo contains info of a snapshot.
SSEnv is the struct used to manage involved directories for taking or receiving snapshots.
SystemEvent is an system event record published by the system that can be handled by a raftio.ISystemEventListener.
# Interfaces
IPartitioner is the interface for partitioning shards.
IRaftEventListener is the event listener used by the Raft implementation.
# Type aliases
Mode is the snapshot env mode.
SnapshotDirFunc is the function type that returns the snapshot dir for the specified raft node.
SystemEventType is the type of system events.