Documentation
¶
Index ¶
- func AddOperationIdToContext() oasapi.Middleware
- func GetOperationIDContext(ctx context.Context) (string, bool)
- func GetRequestIDContext(ctx context.Context) (string, bool)
- func WithLogging(next http.Handler) http.Handler
- func WithOperationIDContext(ctx context.Context, operationID string) context.Context
- func WithRequestIDContext(ctx context.Context, id string) context.Context
- func WithRequestIdentification(generator idgen.Generator, next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOperationIdToContext ¶
func AddOperationIdToContext() oasapi.Middleware
func WithOperationIDContext ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.