Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondInvalidBody ¶
func RespondInvalidBody(err error, ctx *fiber.Ctx)
RespondInvalidBody returns ErrMap from validation.
func RouteJSON ¶
func RouteJSON(ctrl interface{}) func(ctx *fiber.Ctx) error
RouteJSON handles json request.
func ValidateAndExecute ¶
func ValidateAndExecute(ctrl Controller, ctx *fiber.Ctx) error
ValidateAndExecute handles controllers set by router.
Types ¶
type Controller ¶
type Controller interface {
Exec(ctx *fiber.Ctx) (interface{}, error)
}
Controller is interface to handle routines in router.
Click to show internal directories.
Click to hide internal directories.