middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 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 added in v0.1.0

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

Types

type LogConfig added in v0.1.0

type LogConfig struct {
	ExcludePaths []string
}

Jump to

Keyboard shortcuts

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