middleware

package
v0.0.0-...-aad8beb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignRequestID

func AssignRequestID(next echo.HandlerFunc) echo.HandlerFunc

AssignRequestID is a middleware to set a request_id to response (as a header) and to request (in the underlying context). If the value is not found in X-Request-ID header from request the identifier will be generated. The request_id will be used by http clients in external requests

func NewRelicMiddleware

func NewRelicMiddleware(newrelicApp newrelic.Application) echo.MiddlewareFunc

NewRelicMiddleware is a middleware to send request info to New Relic.

func RequestLogger

func RequestLogger(next echo.HandlerFunc) echo.HandlerFunc

RequestLogger is a middleware to log the request data

Types

This section is empty.

Jump to

Keyboard shortcuts

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