token

package
v0.0.0-...-2946602 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EXPIRE_TIME = time.Second * 3
View Source
const SPLIT_SYMBOL = "|||||"

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(staffEmail string) (string, error)

func IsExpired

func IsExpired(tokenStr, staffEmail string) bool

IsExpired token 是否过期

Types

This section is empty.

Jump to

Keyboard shortcuts

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