handler

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Validator *validator.Validate
}

func (*Base) BodyParserValidator

func (b *Base) BodyParserValidator(ctx fiber.Ctx, out any) error

BodyParserValidator parses the request body and validates the resulting object. It returns an error if parsing or validation fails.

func (*Base) HeaderParserValidator

func (b *Base) HeaderParserValidator(ctx fiber.Ctx, out any) error

HeaderParserValidator parses the request headers and validates the resulting object. It returns an error if parsing or validation fails.

The header is bound from the "header" struct tag, the Fiber v3 name for the tag Fiber v2 read as "reqHeader".

func (*Base) ParamParserValidator

func (b *Base) ParamParserValidator(ctx fiber.Ctx, out any) error

ParamParserValidator parses the request parameters and validates the resulting object. It returns an error if parsing or validation fails.

The route parameter is bound from the "uri" struct tag, the Fiber v3 name for the tag Fiber v2 read as "params".

func (*Base) QueryParserValidator

func (b *Base) QueryParserValidator(ctx fiber.Ctx, out any) error

QueryParserValidator parses the query string and validates the resulting object. It returns an error if parsing or validation fails.

type Handler added in v0.2.0

type Handler interface {
	Register(r fiber.Router)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL