Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func JWTAuth ¶
func JWTAuth(secretKey string) app.HandlerFunc
func Recovery ¶
func Recovery() app.HandlerFunc
Types ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateToken ¶
CreateToken to create a token
func (*JWT) ParseToken ¶
ParseToken to parse a token
Click to show internal directories.
Click to hide internal directories.