utils

package
v0.0.0-...-165bc0d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CursorToState

func CursorToState(cursor string) ([]byte, error)

func GetRootDir

func GetRootDir() (*string, error)

func IsDebug

func IsDebug(key string) bool

func MD5

func MD5(text string) string

func Migrate

func Migrate(ctx context.Context, hosts []string, params map[string]interface{}, dirs []string) error

func NewBucket

func NewBucket(template string) (string, int64)

func NewBucketFromTime

func NewBucketFromTime(template string, t time.Time) (string, int64)

func NewId

func NewId(prefix string) string

func ScanFiles

func ScanFiles(root, ext string) ([]string, error)

func StateToCursor

func StateToCursor(state []byte) string

func WithHealthCheck

func WithHealthCheck(keyPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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