Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
Username string `json:"username"`
goJwt.RegisteredClaims
}
Claims ...
type CoreJWT ¶
type CoreJWT struct {
Secret string `json:"secret"` // jwt密钥
Timeout int `json:"timeout"` // jwt过期时间
}
CoreJWT ...
func (*CoreJWT) ParseToken ¶
ParseToken 解析token
func (*CoreJWT) TokenVerify ¶
func (h *CoreJWT) TokenVerify() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.