Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenConfig ¶
type TokenConfig struct { APP_KEY string // contains filtered or unexported fields }
func TokenNewInit ¶
func TokenNewInit(APP_KEY string, times int) TokenConfig
func (TokenConfig) GetToken ¶
func (t TokenConfig) GetToken(tokenString string) (jwt.MapClaims, string)
解析token
func (TokenConfig) TokenHandler ¶
func (t TokenConfig) TokenHandler(id string) (string, error)
TokenHandler是我们获取用户名和密码的处理程序,如果有效,则返回用于将来请求的令牌。
Click to show internal directories.
Click to hide internal directories.