middleware

package
v0.0.0-...-4b532c3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMiddlewares

func GetMiddlewares() []gin.HandlerFunc

GetMiddlewares returns all configured middleware handlers Filters out any middleware creators that return nil

func Logger

func Logger() gin.HandlerFunc

Logger creates a Gin middleware for HTTP request logging

func Recovery

func Recovery() gin.HandlerFunc

Recovery creates a panic recovery middleware for Gin Captures and logs panics with stack traces, returns 500 error response

func RequestMetrics

func RequestMetrics() gin.HandlerFunc

RequestMetrics creates a middleware for collecting HTTP request metrics Tracks request status codes and domain-specific request counts

func Trace

func Trace() gin.HandlerFunc

Trace creates a middleware for handling request tracing Extracts or generates trace ID from headers and sets it in context and response headers

Types

This section is empty.

Jump to

Keyboard shortcuts

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