correlation

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Header = "x-correlation-id"

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

func Middleware

func Middleware(idGenerator IDGenerator) func(next http.Handler) http.Handler

func WithContext

func WithContext(ctx context.Context, correlationID string) context.Context

Types

type IDGenerator

type IDGenerator func() string

Jump to

Keyboard shortcuts

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