Documentation ¶
Index ¶
- type ErrorHandler
- type Option
- func WithAuthenticationErrorCode(code int) Option
- func WithAuthorizationErrorCode(code int) Option
- func WithCommunicationErrorCode(code int) Option
- func WithInternalServerErrorCode(code int) Option
- func WithMethodErrorCode(code int) Option
- func WithNoRuleErrorCode(code int) Option
- func WithPreconditionErrorCode(code int) Option
- func WithVerboseErrors(flag bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler interface {
HandleError(rw http.ResponseWriter, req *http.Request, err error)
}
func New ¶
func New(opts ...Option) ErrorHandler
type Option ¶
type Option func(*opts)
func WithMethodErrorCode ¶
func WithNoRuleErrorCode ¶
func WithVerboseErrors ¶
Click to show internal directories.
Click to hide internal directories.