handlers

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"handlers",
	fx.Decorate(func(log *zap.Logger) *zap.Logger {
		return log.Named("handlers")
	}),
	fx.Provide(
		http.AsRootHandler(newRootHandler),
		http.AsApiHandler(newThirdPartyHandler),
		http.AsApiHandler(newMobileHandler),
	),
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger    *zap.Logger
	Validator *validator.Validate
}

func (*Handler) BodyParserValidator

func (h *Handler) BodyParserValidator(c *fiber.Ctx, out any) error

func (*Handler) ParamsParserValidator

func (h *Handler) ParamsParserValidator(c *fiber.Ctx, out any) error

func (*Handler) QueryParserValidator

func (h *Handler) QueryParserValidator(c *fiber.Ctx, out any) error

type Validatable added in v1.5.3

type Validatable interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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