Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrDb = errors.New("database error") ErrValidation = errors.New("validation failed") ErrAuthentication = errors.New("missing or wrong credentials") ErrAuthorization = errors.New("authorization error") ErrBodyDecode = errors.New("body decode failed") ErrBodyEncode = errors.New("body encode failed") ErrPathParameter = errors.New("path parameter error") ErrNotAllowed = errors.New("method not allowed") )
Functions ¶
Types ¶
type Handler ¶
type Handler func(http.ResponseWriter, *http.Request, httprouter.Params) error
Handler type represents handler that can return error. It's intended to be wrapped in error.Handle handler
Click to show internal directories.
Click to hide internal directories.