Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TokenValidateFailed = errors.New("token validate failed")
)
Functions ¶
This section is empty.
Types ¶
type JwtAuth ¶
type JwtAuth struct { ClaimsKey string // contains filtered or unexported fields }
JwtAuth jwt
func (JwtAuth) GenerateToken ¶
CreateToken 生成token
func (JwtAuth) ParseToken ¶
ParseToken parse token
func (JwtAuth) ParseTokenWithClaims ¶
ParseToken parse token
Click to show internal directories.
Click to hide internal directories.