Documentation ¶
Index ¶
- type BaseToken
- type Claims
- type Handler
- func (h *Handler) CreateToken(claims *Claims) (signedToken string, success bool)
- func (h *Handler) GenToken(t Token) (claims *Claims, signedToken string, success bool)
- func (h *Handler) ValidateToken(signedToken string) (claims *Claims, success bool)
- func (h *Handler) VerifyToken(signedToken string) (claims *Claims, success bool)
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { BaseToken proxy.StandardClaims }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateToken ¶
CreateToken create token
func (*Handler) ValidateToken ¶
ValidateToken validate token
Click to show internal directories.
Click to hide internal directories.