fiber

package
v0.0.0-...-04f0c05 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(logger Logger) fiber.Handler

func MetricsMiddleware

func MetricsMiddleware() fiber.Handler

func RecordHTTPRequest

func RecordHTTPRequest(method, path string, statusCode int, duration float64)

func RecoveryMiddleware

func RecoveryMiddleware(logger Logger) fiber.Handler

func RequestIDMiddleware

func RequestIDMiddleware() fiber.Handler

func TracingMiddleware

func TracingMiddleware(serviceName string) fiber.Handler

Types

type Logger

type Logger interface {
	Info(msg string, attrs ...any)
	Warn(msg string, attrs ...any)
	Error(msg string, attrs ...any)
}

Jump to

Keyboard shortcuts

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