Documentation ¶
Index ¶
Constants ¶
View Source
const ( Noop res = iota ERequestNotValid EBadRequest EInternalServerError EOk )
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(ctx *fiber.Ctx, message interface{}) error
cannot parse body request / query params / path params
func InternalServerError ¶
func InternalServerError(ctx *fiber.Ctx) error
func RequestNotValid ¶
func RequestNotValid(ctx *fiber.Ctx, validationError interface{}) error
body request / query params / path params is in wrong format
Types ¶
type ResponseFactory ¶
type ResponseFactory interface {
Create() error
}
func Make ¶
func Make(resType res, ctx *fiber.Ctx, message interface{}) ResponseFactory
Click to show internal directories.
Click to hide internal directories.