middleware

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(conf LogConfig) func(next http.Handler) http.Handler

func LogFromContext

func LogFromContext(ctx context.Context) (*slog.Logger, bool)

func NewLogContext

func NewLogContext(ctx context.Context, logger *slog.Logger) context.Context

Types

type LogConfig

type LogConfig struct {
	ExcludePaths []string
}

Jump to

Keyboard shortcuts

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