http_log

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(
	logContextProvider FieldContext,
	traceContextProvider TraceContext,
	logger Logger,
) func(http.Handler) http.Handler

Types

type FieldContext

type FieldContext interface {
	WithFields(context.Context, map[string]any) context.Context
}

type Logger

type Logger interface {
	Info(context.Context, string)
}

type TraceContext

type TraceContext interface {
	WithTrace(context.Context, string) context.Context
}

Jump to

Keyboard shortcuts

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