Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
type HandlerFunc ¶
type HandlerFunc func(r *http.Request) (result HandlerResult)
type HandlerResult ¶
type JwtMiddleware ¶
type JwtMiddleware func(HandlerFunc, []string) HandlerFunc
type ProtectedHandlerFunc ¶
type ProtectedHandlerFunc struct {
// contains filtered or unexported fields
}
func NewProtectedHandler ¶
func NewProtectedHandler(hnd HandlerFunc, roles []string) ProtectedHandlerFunc
func (*ProtectedHandlerFunc) GetHandler ¶
func (ph *ProtectedHandlerFunc) GetHandler() HandlerFunc
func (*ProtectedHandlerFunc) GetRoles ¶
func (ph *ProtectedHandlerFunc) GetRoles() []string
type ResultFilter ¶
type ResultFilter func(w http.ResponseWriter, r *http.Request, result HandlerResult)
Click to show internal directories.
Click to hide internal directories.