global

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisErrorNotExists                = redis.Nil
	ErrWhereMapValueMustInterfaceSlice = fmt.Errorf("knownMap value 必须是 []interface{} 类型")
	ErrTablerNotImplement              = fmt.Errorf("Tabler接口未实现")
	ErrIGetIDNotImplement              = fmt.Errorf("IGetID接口未实现")
	ErrInputListNotPtr                 = fmt.Errorf("传入的list字段并非指针")
	ErrInputListNotSlice               = fmt.Errorf("传入的list字段并非切片")
	ErrInputModelNotPtr                = fmt.Errorf("传入的model字段并非指针")
	ErrInputModelNotStruct             = fmt.Errorf("传入的model字段并非结构体")
	ErrInputMpNotMap                   = fmt.Errorf("参数mp的类型不是Map")
)

Functions

func Expire10Min

func Expire10Min() int

func Expire30Min

func Expire30Min() int

func Expire5Min

func Expire5Min() int

func ExpireDay

func ExpireDay() int

func ExpireDuration

func ExpireDuration(second int) time.Duration

func ExpireHour

func ExpireHour() int

func MergeKey

func MergeKey(elements ...string) string

Types

type DB

type DB int
const (
	DB0Default DB = iota // 默认
	DB1Token             // Token
	DB2String            // String
	DB2ZSet              // ZSet
)

func (DB) Int

func (d DB) Int() int

type IGetId

type IGetId interface {
	GetIdString() string
}

Jump to

Keyboard shortcuts

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