middleware

package
v0.1.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOperationIdToContext

func AddOperationIdToContext() oasapi.Middleware

func GetOperationIDContext

func GetOperationIDContext(ctx context.Context) (string, bool)

func GetRequestIDContext

func GetRequestIDContext(ctx context.Context) (string, bool)

func WithLogging

func WithLogging(next http.Handler) http.Handler

func WithOperationIDContext

func WithOperationIDContext(ctx context.Context, operationID string) context.Context

WithOperationIDContext adds the given operation ID to the given context. The value is wrapped in struct so that it can be set downstream and retrieved upstream in the callstack. If a wrapper already exists in the context, its value is set instead of creating a new wrapper.

func WithRequestIDContext

func WithRequestIDContext(ctx context.Context, id string) context.Context

func WithRequestIdentification

func WithRequestIdentification(generator idgen.Generator, next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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