Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
jwt.StandardClaims
Uid int64 `json:"uid"`
Device int64 `json:"device"`
Ver int64 `json:"ver"`
}
type JwtAuthorize ¶
type JwtAuthorize struct {
}
func NewAuthorizeImpl ¶
func NewAuthorizeImpl(secret string) *JwtAuthorize
func (JwtAuthorize) RemoveToken ¶
func (a JwtAuthorize) RemoveToken(t *auth.Token) error
Click to show internal directories.
Click to hide internal directories.