Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { Username string `json:"username"` jwt.RegisteredClaims }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(mgmt *config.Management) *Handler
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(management *config.Management) *Middleware
func (*Middleware) AuthMiddleware ¶
func (m *Middleware) AuthMiddleware(handler http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.