package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Functions

GetSnapshotDirName returns the snapshot dir name for the snapshot captured at the specified index.
NewSSEnv creates and returns a new SSEnv instance.

# Constants

CreatingMode is the mode used when taking snapshotting.
ReceivingMode is the mode used when receiving snapshots from remote nodes.

# Variables

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.
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.

# Structs

SSEnv is the struct used to manage involved directories for taking or receiving snapshots.

# Type aliases

Mode is the snapshot env mode.
SnapshotDirFunc is the function type that returns the snapshot dir for the specified replica.