Documentation ¶
Index ¶
- Constants
- func DelCheckpoint(cli client.Redis, checkpointName string, runId string) error
- func DelCheckpointHash(cli client.Redis, runId string) error
- func DelStaleCheckpoint(cli client.Redis, checkpointName string, runId string, beforeNow time.Duration, ...) (int, int, error)
- func GetAllCheckpointHash(cli client.Redis) ([]string, error)
- func GetCheckpointHash(cli client.Redis, runIds []string) (cpName string, runId string, err error)
- func SetCheckpoint(cli client.Redis, cp *CheckpointInfo) error
- func SetCheckpointHash(cli client.Redis, runId string, cpName string) error
- func UpdateCheckpoint(outCli client.Redis, localCheckpoint string, ids []string) error
- type CheckpointInfo
Constants ¶
View Source
const ( CheckpointOffsetSuffix = "_offset" CheckpointRunIdSuffix = "_runid" CheckpointVersionSuffix = "_version" CheckpointMtimeSuffix = "_mtime" )
Variables ¶
This section is empty.
Functions ¶
func DelCheckpoint ¶
clear checkpoint of dbs
func DelStaleCheckpoint ¶
func GetCheckpointHash ¶
returns checkpoint name, run id, error
func SetCheckpoint ¶
func SetCheckpoint(cli client.Redis, cp *CheckpointInfo) error
func SetCheckpointHash ¶
func UpdateCheckpoint ¶
UpdateCheckpoint update checkpoint name as localCheckpoint (checkpoint name changes with redis typology) update checkpoint run id as first element of ids @TODO update and create timestamp for GC it is not transactional
Types ¶
type CheckpointInfo ¶
func GetCheckpoint ¶
func (*CheckpointInfo) KeyValus ¶
func (cp *CheckpointInfo) KeyValus() []string
func (*CheckpointInfo) MTimeKey ¶
func (cp *CheckpointInfo) MTimeKey() string
func (*CheckpointInfo) OffsetKey ¶
func (cp *CheckpointInfo) OffsetKey() string
func (*CheckpointInfo) RunIdKey ¶
func (cp *CheckpointInfo) RunIdKey() string
func (*CheckpointInfo) VersionKey ¶
func (cp *CheckpointInfo) VersionKey() string
Click to show internal directories.
Click to hide internal directories.