fiber_utils

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrHandler

func ErrHandler() func(c *fiber.Ctx, err error) error

func GetLogCtx added in v0.2.1

func GetLogCtx(c interface {
	Locals(key string, value ...any) any
},
) context.Context

func MiddlewareLogger

func MiddlewareLogger(config LogCtxConfig) func(c *fiber.Ctx) error

func StatusFromContext

func StatusFromContext(c *fiber.Ctx, err error) int

Types

type LogCtxConfig added in v0.2.0

type LogCtxConfig struct {
	DisableIP        bool
	DisableAPPMethod bool
	DisableUserAgent bool
}

Jump to

Keyboard shortcuts

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