auth

package
v0.0.0-...-561f698 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheExpiresIn = 1 * time.Hour
)
View Source
const (
	EXPIRESIN = 24 * time.Hour
)

EXPIRESIN 会话有效时间

Variables

This section is empty.

Functions

func AddCache

func AddCache(data string, timeout ...time.Duration) (uid string, err error)

func DeleteCache

func DeleteCache(uid string) (err error)

func GetCache

func GetCache(uid string) (string, error)

func GetCacheData

func GetCacheData(uid string, data interface{}) (err error)

func SHA1

func SHA1(input string) string

func SHA1Byte

func SHA1Byte(input []byte) string

func SetCache

func SetCache(uid string, data string, timeout ...time.Duration) (err error)

func SetCacheData

func SetCacheData(uid string, data interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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