Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLoggerMid ¶
func AddLoggerMid(logger *slog.Logger, next http.HandlerFunc) http.HandlerFunc
AddLoggerMid adds the logger to the request context.
func CtxWithLogger ¶
CtxWithLogger returns the context enriched with the logger.
func FromContext ¶
FromContext fetch the logger from the context.
func Middleware ¶
func Middleware(next http.Handler) http.HandlerFunc
Middleware request logging middleware.
Types ¶
Click to show internal directories.
Click to hide internal directories.