Documentation
¶
Overview ¶
Package fiberx provides helper functions and utilities to work with Fiber framework.
Index ¶
- func Errors() fiber.ErrorHandler
- func ParseAll(ctx fiber.Ctx, out interface{}) *fiber.Error
- func ParseAllAndValidate(ctx fiber.Ctx, out interface{}) *fiber.Error
- func ParseBody(ctx fiber.Ctx, body interface{}) *fiber.Error
- func ParseBodyAndValidate(ctx fiber.Ctx, body interface{}) *fiber.Error
- func Validate(payload interface{}) *fiber.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errors ¶
func Errors() fiber.ErrorHandler
Errors returns a Fiber error handler that formats errors into a consistent JSON structure.
func ParseAllAndValidate ¶
ParseAllAndValidate is helper function for parsing and validating the query and body.
func ParseBody ¶
ParseBody is helper function for parsing the body. Is any error occurs it will panic. Its just a helper function to avoid writing if condition again n again.
func ParseBodyAndValidate ¶
ParseBodyAndValidate is helper function for parsing and validating the body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.