Documentation
¶
Index ¶
- func DecorateWithBody[T any](h func(c *fiber.Ctx, body *T) error) fiber.Handler
- func DecorateWithBodyEx[T any](validate *validator.Validate, h func(c *fiber.Ctx, body *T) error) fiber.Handler
- func GetValidatedBody[T any](c *fiber.Ctx) (*T, bool)
- func Middleware(c *fiber.Ctx) error
- func NewBody[T any](validate *validator.Validate) fiber.Handler
- func NewErrors(err error) error
- func ValidateBody[T any](c *fiber.Ctx, validate *validator.Validate) (*T, error)
- type Error
- type Errors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecorateWithBody ¶
DecorateWithBody decorates a handler with the validated request.
func DecorateWithBodyEx ¶
func DecorateWithBodyEx[T any](validate *validator.Validate, h func(c *fiber.Ctx, body *T) error) fiber.Handler
DecorateWithBodyEx decorates a handler with the validated request.
func GetValidatedBody ¶
GetValidatedBody retrieves the validated request from the context.
func Middleware ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.