Documentation ¶
Overview ¶
token provides JWT validation and parsing.
Index ¶
- func GenerateToken(keys []string, exp int64, jti string, admin int) (string, error)
- func Info(w http.ResponseWriter, rc http.Request) (error, http.Request)
- func IsAdmin(w http.ResponseWriter, rc http.Request) (error, http.Request)
- func New(w http.ResponseWriter, rc http.Request) (error, http.Request)
- func Parse(w http.ResponseWriter, rc http.Request) (error, http.Request)
- type JwtClaimsMap
- type RequestDecrypt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
Types ¶
type JwtClaimsMap ¶
type RequestDecrypt ¶
type RequestDecrypt struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.