Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTAuth ¶
type JWTAuth struct {
// contains filtered or unexported fields
}
JWTAuth jwt认证
func (*JWTAuth) DestroyToken ¶
DestroyToken 销毁令牌
func (*JWTAuth) GenerateToken ¶
GenerateToken 生成令牌
func (*JWTAuth) ParseUserID ¶
ParseUserID 解析用户ID
type Option ¶
type Option func(*options)
Option 定义参数项
func SetSigningMethod ¶
func SetSigningMethod(method jwt.SigningMethod) Option
SetSigningMethod 设定签名方式
Click to show internal directories.
Click to hide internal directories.