middleware

package
v0.0.0-...-c2ac5d2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEntryKey = &struct{}{}

Functions

func GetLogger

func GetLogger(r *http.Request) *slog.Logger

func Logger

func Logger(logger *slog.Logger) func(http.Handler) http.Handler

Types

type LogEntry

type LogEntry struct {
	Logger *slog.Logger
}

func NewLogEntry

func NewLogEntry(logger *slog.Logger, r *http.Request) *LogEntry

Jump to

Keyboard shortcuts

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