Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWTConfig ¶
type JWTConfig struct { Issuer string //token发行人的名称 ExpireTime int //有效期,单位时间 Secret []byte //采用的密钥 }
func (*JWTConfig) SetDefaultConfig ¶
func (j *JWTConfig) SetDefaultConfig()
type UserInfo ¶
func (*UserInfo) CheckUserInfo ¶
Click to show internal directories.
Click to hide internal directories.