Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token interface { // JwtSign 签名 JwtSign(userID int64, userName string, expireDuration time.Duration) (tokenString string, err error) // JwtParse 解密 JwtParse(tokenString string) (*Claims, error) // UrlSign URL 签名方式,不支持解密 UrlSign(path string, method string, params url.Values) (tokenString string, err error) }
Click to show internal directories.
Click to hide internal directories.