Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DefaultedEnvVar ¶
func ErrorHandler ¶ added in v0.6.0
Types ¶
type ErrorResponse ¶ added in v0.6.0
func NewBadRequestResponse ¶ added in v0.6.0
func NewBadRequestResponse(e error) ErrorResponse
func NewGenericNotFoundResponse ¶ added in v0.6.0
func NewGenericNotFoundResponse(context string) ErrorResponse
func NewGenericUnauthorizedResponse ¶ added in v0.6.0
func NewGenericUnauthorizedResponse(context string) ErrorResponse
func NewInternalServerErrorResp ¶ added in v0.6.0
func NewInternalServerErrorResp(context string, e error) ErrorResponse
func (ErrorResponse) Error ¶ added in v0.6.0
func (e ErrorResponse) Error() string
type FiberHandler ¶ added in v0.5.0
type FiberHandler func(*fiber.Ctx) error
type HttpHandler ¶
type HttpHandler func(http.ResponseWriter, *http.Request)
type OutboundErrResponse ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.