Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSigningKey = "centaur"
Variables ¶
View Source
var DefaultOptions = jwtoptions{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type JWTAuth ¶
type JWTAuth struct {
// contains filtered or unexported fields
}
var JWTentity *JWTAuth
func NewJWTAuth ¶
func (*JWTAuth) DestroyToken ¶
DestroyToken 销毁令牌
func (*JWTAuth) GenerateToken ¶
GenerateToken 为生成令牌
func (*JWTAuth) ParseToken ¶
解析令牌
type Option ¶
type Option func(*jwtoptions)
func SetSigningMethod ¶
func SetSigningMethod(method jwt.SigningMethod) Option
SetSigningMethod 设定签名方法
type RedisConfig ¶
type RedisConfig struct {
// contains filtered or unexported fields
}
RedisConfig redis配置参数
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(cfg *RedisConfig) *RedisStore
func (*RedisStore) Close ¶
func (s *RedisStore) Close()
Click to show internal directories.
Click to hide internal directories.