web

package
v0.0.0-...-71eb8d2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContextLogger

func AddContextLogger(logger zerolog.Logger, hdrRequestID string) echo.MiddlewareFunc

AddContextLogger creates middleware to inject a logger into the context

func CommonMiddleware

func CommonMiddleware(l zerolog.Logger) []echo.MiddlewareFunc

func HTTPErrorHandler

func HTTPErrorHandler(c *echo.Context, err error)

func LoggerFromContext

func LoggerFromContext(c context.Context) *zerolog.Logger

func LoggerFromEchoContext

func LoggerFromEchoContext(c *echo.Context) *zerolog.Logger

Types

type StructValidator

type StructValidator struct {
	// contains filtered or unexported fields
}

func NewStructValidator

func NewStructValidator() *StructValidator

func (*StructValidator) Validate

func (cv *StructValidator) Validate(i any) error

Jump to

Keyboard shortcuts

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