handler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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.

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.

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