middleware

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequests added in v0.3.0

func LogRequests(next http.Handler) http.Handler

LogRequests logs the incoming requests

func PanicRecovery added in v0.3.0

func PanicRecovery(next http.Handler) http.Handler

func RequestID added in v0.6.0

func RequestID(next http.Handler) http.Handler

Types

type Logger added in v0.6.0

type Logger struct {
	Logger *slog.Logger
}

func (Logger) ContextLogger added in v0.6.0

func (c Logger) ContextLogger(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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