Documentation ¶ Index ¶ func LogRequests(next http.Handler) http.Handler func PanicRecovery(next http.Handler) http.Handler func RequestID(next http.Handler) http.Handler type Logger func (c Logger) ContextLogger(next http.Handler) http.Handler 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 Source Files ¶ View all Source files context_logger.go panic_recovery.go request_id.go request_logger.go Click to show internal directories. Click to hide internal directories.