Documentation ¶
Index ¶
- func CheckToken(c *gin.Context)
- func GenerateToken(uid string) (string, error)
- func GenerateTokenWithTimeout(uid string, timeout time.Duration) (string, error)
- func RefreshToken(c *gin.Context) (string, bool)
- func RefreshTokenByToken(token string, timeout ...time.Duration) (newToken string, err error)
- func SetOption(opfs ...func(opt *Option))
- func Uid(c *gin.Context) (string, bool)
- type Claims
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
func GenerateToken ¶
func RefreshTokenByToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.