v1

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyKey

func CopyKey(conn redis.Conn, src, dst string) error

func IsErrNoSuchKey

func IsErrNoSuchKey(err error) bool

IsErrNoSuchKey return true if error is of type "no such key"

Types

type Version1

type Version1 struct {
	Redis interfaces.Redis
}

func NewUpgraderV1

func NewUpgraderV1(redis interfaces.Redis) *Version1

NewUpgraderV1 upgrades the database from version 0 to 1

func (*Version1) CreateMirrorIndex

func (v *Version1) CreateMirrorIndex(a *actions) (map[int]string, error)

func (*Version1) FixMirrorID

func (v *Version1) FixMirrorID(a *actions, m map[int]string) error

func (*Version1) RenameKeys

func (v *Version1) RenameKeys(a *actions, m map[int]string) error

func (*Version1) RenameStats

func (v *Version1) RenameStats(a *actions, m map[int]string) error

func (*Version1) Upgrade

func (v *Version1) Upgrade() error

Jump to

Keyboard shortcuts

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