package
0.0.0-20241222002135-c9d1db9af773
Repository: https://github.com/alphaone1/midgard.git
Documentation: pkg.go.dev

# README

Correlation ID Middleware

The correlation ID middleware adds a X-Correlation-ID header to incoming requests, if they do not contain one already. The correlation ID can be used track the control flow in systems of microservices.

Example

finalHandler := midgard.StackMiddlewareHandler(
    []midgard.Middleware{
        correlation.New(),
    },
    http.HandlerFunc(HelloHandler),
)

# Functions

New generates a new correlation id enriching middleware.
WithLogger configures the logger to use.
WithLogLevel configures the log level to use with the logger.

# Structs

No description provided by the author