Documentation
¶
Overview ¶
*
- @Author: DollarKiller
- @Description:
- @Github: https://github.com/dollarkillerx
- @Date: Create in 14:08 2019-10-29
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Token *token
)
Functions ¶
This section is empty.
Types ¶
type JwtPayload ¶
type JwtPayload struct { User string `json:"user"` // 用户 名 Email string `json:"email"` // 用户邮件 Data interface{} `json:"data"` // 需要存的数据 TimeOut time.Duration `json:"-"` Iss string `json:"-"` // 用户唯一标识 }
func NewJwt ¶
func NewJwt() *JwtPayload
Click to show internal directories.
Click to hide internal directories.