Documentation
¶
Index ¶
- type BaseToken
- type Claims
- type Handler
- func (h *Handler) CreateToken(claims *Claims) (signedToken string, success bool)
- func (h *Handler) GenToken(t Req) (claims *Claims, expire time.Duration, 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 Req
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { BaseToken proxy.RegisteredClaims }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateToken ¶
CreateToken create tokenApi
func (*Handler) ValidateToken ¶
ValidateToken validate tokenApi
Click to show internal directories.
Click to hide internal directories.