Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrMissingHeader means the `Authorization`header was empty ErrMissingHeader = errors.New("the length of the `Authorization` header is zero.") )
Functions ¶
func GetJwtSecret ¶
func GetJwtSecret() string
func SetJwtSecret ¶
func SetJwtSecret(jwtSecret string)
Types ¶
type Context ¶
type Context struct { // 用户id ID uint64 // 用户uuid UUID string // 用户名 Username string // SafeCode string // 过期日期时间戳 time unix Expiry int64 }
Context is the context of the JSON web token
Click to show internal directories.
Click to hide internal directories.