Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalid occurs when checks fails ErrInvalid = errors.New("invalid") // ErrNotFound occurs when something is not found ErrNotFound = errors.New("not found") // ErrMethodNotAllowed occurs when method is not allowed ErrMethodNotAllowed = errors.New("method not allowed") // ErrInternalError occurs when shit happens ErrInternalError = errors.New("internal error") )
Functions ¶
func ConcatError ¶ added in v3.36.1
ConcatError concat errors to a single string
func WrapInternal ¶ added in v3.36.1
WrapInternal wraps given error with internal err
func WrapInvalid ¶ added in v3.36.1
WrapInvalid wraps given error with invalid err
func WrapMethodNotAllowed ¶ added in v3.36.1
WrapMethodNotAllowed wraps given error with not method not allowed err
func WrapNotFound ¶ added in v3.36.1
WrapNotFound wraps given error with not found err
Types ¶
type Middleware ¶
Middleware describe a middleware in the net/http package form
Click to show internal directories.
Click to hide internal directories.