Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtAuth ¶
type JwtAuth struct { InvalidTokenHandler func(http.ResponseWriter, *http.Request) TokenValidated func(map[string]interface{}, *http.Request) SecretKey string }
func NewJwtAuth ¶
func NewJwtAuth() *JwtAuth
func (*JwtAuth) GenerateToken ¶
func (*JwtAuth) HandlerFunc ¶
func (j *JwtAuth) HandlerFunc(h http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.