custommiddleware

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest() echo.MiddlewareFunc

LogRequest logs the HTTP request to the server. Maybe at some point I'll log the resp too, but that looks harder

func TraceID

func TraceID() echo.MiddlewareFunc

TraceID adds X-Request-ID: <trace-id> to response headers. It reads the traceID from the context so should be .Used after otelecho.Middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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