migrate

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExternalIP added in v1.4.4

func GetExternalIP() (string, error)

func GetHostname added in v1.4.4

func GetHostname() (string, error)

func GetMacAddr added in v1.4.4

func GetMacAddr() (addr string, err error)

func RedisScan added in v1.4.4

func RedisScan(c redis.Conn, match string) (keys []string, err error)

取代 keys 效能更好

Types

type Migrate

type Migrate struct {
	// contains filtered or unexported fields
}

func New

func New(groupRedis *redis.Pool, delayRedis *redis.Pool, apiRedis *redis.Pool) (m *Migrate)

func (*Migrate) Dump

func (m *Migrate) Dump(groupName string) (buf *bytes.Buffer, err error)

func (*Migrate) Import

func (m *Migrate) Import(b []byte) (err error)

Jump to

Keyboard shortcuts

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