Documentation ¶
Index ¶
Constants ¶
View Source
const CheckpointListKey = "checkpoints"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
KVStore The manager for checkpoint storage.
mapStore keys
{ "checkpoint1", "checkpoint2" ... "checkpointn" : The complete or incomplete snapshot
func (*KVStore) GetOpState ¶
GetOpState Only run in the initialization
func (*KVStore) SaveCheckpoint ¶
type MemoryStore ¶
func (*MemoryStore) Clean ¶
func (s *MemoryStore) Clean() error
func (*MemoryStore) GetOpState ¶
func (s *MemoryStore) GetOpState(_ string) (*sync.Map, error)
func (*MemoryStore) SaveCheckpoint ¶
func (s *MemoryStore) SaveCheckpoint(_ int64) error
Click to show internal directories.
Click to hide internal directories.