keys

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeKey

func DecodeKey(
	key polypb.Key,
) (db polypb.DatabaseID, baseTime, backupTime polypb.TimePoint, err error)

func DecodeMetaKey

func DecodeMetaKey(
	key polypb.BackupMetaKey,
) (db polypb.DatabaseID, baseTime, backupTime polypb.TimePoint, err error)

func MakeBackupKey

func MakeBackupKey(
	db polypb.DatabaseID,
	baseTime, backupTime polypb.TimePoint,
) polypb.Key

func MakeBackupMetaKey

func MakeBackupMetaKey(
	db polypb.DatabaseID,
	baseTime, backupTime polypb.TimePoint,
) polypb.BackupMetaKey

func MakeBackupMetaKeyFromKey

func MakeBackupMetaKeyFromKey(key polypb.Key) polypb.BackupMetaKey

func MakeBackupPrefix

func MakeBackupPrefix(
	db polypb.DatabaseID,
	baseTime polypb.TimePoint,
) polypb.Key

func MakeDBBackupMetaPrefix

func MakeDBBackupMetaPrefix(db polypb.DatabaseID) polypb.BackupMetaKey

MakeDBBackupMetaPrefix

func MakeNodeMetaKey

func MakeNodeMetaKey(node polypb.NodeID) polypb.NodeMetaKey

func MakeNodeMetaPrefix

func MakeNodeMetaPrefix() polypb.NodeMetaKey

func MakeSeriesBackupMetaPrefix

func MakeSeriesBackupMetaPrefix(
	db polypb.DatabaseID,
	baseTime polypb.TimePoint,
) polypb.BackupMetaKey

Types

type BackupKeyItem

type BackupKeyItem struct {
	Db         string
	StoredTime time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL