Versions in this module Expand all Collapse all v1 v1.0.0 Sep 1, 2022 Changes in this version + func ClearToken(token string) + func Cors() gin.HandlerFunc + func Error() gin.HandlerFunc + func Format() gin.HandlerFunc + func GenerateToken(info TokenInfo) (string, error) + func HttpNeedToUseGetRequest(c *gin.Context) interface + func HttpNeedToUsePostRequest(c *gin.Context) interface + func Login() gin.HandlerFunc + func Site() gin.HandlerFunc + func Token() gin.HandlerFunc + type TokenInfo struct + Expiration time.Duration + Nickname string + Uid int64 + Username string + func ParseToken(token string) (*TokenInfo, *exception.Error)