Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = clevergo.NewError(http.StatusForbidden, errors.New("you are not allowed to access this page")) )
Errors
Functions ¶
Types ¶
type Option ¶
type Option func(*authorization)
Option is a function that apply on authorization middleware.
func WithSkipper ¶
WithSkipper is an option that set authorization's skipper.
Click to show internal directories.
Click to hide internal directories.