package
0.0.0-20230314032259-bae9de3af2ca
Repository: https://github.com/escalice/go-demo.git
Documentation: pkg.go.dev

# Functions

New 创建认证实例.
NewStorage 创建redis存储实例.
WithExpired 设定令牌过期时长(单位秒,默认7200).
WithKeyFunc 设定验证key的回调函数.
WithSigningKey 设定签名key.
WithSigningMethod 设定签名方式.

# Variables

No description provided by the author

# Structs

JWTAuth jwt认证.
RedisConfig redis配置参数.
Store redis存储.

# Interfaces

Storage 令牌存储接口(通过存储令牌实现主动过期).

# Type aliases

Option 定义参数项.