Versions in this module Expand all Collapse all v0 v0.1.1 Jan 27, 2024 Changes in this version + type Logger interface + Error func(msg string, args ...any) + ErrorContext func(ctx context.Context, msg string, args ...any) + Info func(msg string, args ...any) + InfoContext func(ctx context.Context, msg string, args ...any) + Warn func(msg string, args ...any) + WarnContext func(ctx context.Context, msg string, args ...any) + type ReqLogger struct + func NewReqLogger(opts ...ReqLoggerOpt) *ReqLogger + func (mw *ReqLogger) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (mw *ReqLogger) Wrap(h http.Handler) http.Handler + type ReqLoggerOpt func(*ReqLogger) + func WithLogger(logger Logger) ReqLoggerOpt + type RespCompressor struct + func NewRespCompressor(opts ...RespCompressorOpt) *RespCompressor + func (mw *RespCompressor) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (mw *RespCompressor) Wrap(h http.Handler) http.Handler + type RespCompressorOpt func(*RespCompressor) + func WithDeflate(level int) RespCompressorOpt + func WithGZip(level int) RespCompressorOpt