Versions in this module Expand all Collapse all v2 v2.1.0 Apr 20, 2026 v2.0.0 Apr 20, 2026 Changes in this version + func AccessLogger(next http.Handler, logger *slog.Logger) http.Handler + func CorrelationIDMiddleware(next http.Handler) http.Handler + func PanicRecoveryMiddleware(logger *slog.Logger) func(http.Handler) http.Handler + func RoutePattern(r *http.Request) string + func SetRoutePattern(ctx context.Context, pattern string) context.Context + func URLParam(r *http.Request, key string) string + type CheckFunc func(ctx context.Context) error + type Config struct + Addr string + Handler http.Handler + IdleTimeout time.Duration + Logger *slog.Logger + Metrics *metrics.Metrics + Name string + ReadTimeout time.Duration + ShutdownTimeout time.Duration + Tracer *trace.Tracer + WriteTimeout time.Duration + type Server struct + func New() *Server + func NewWithConfig(cfg *Config) *Server + func (s *Server) AddReadinessCheck(name string, fn CheckFunc) *Server + func (s *Server) Addr() string + func (s *Server) Name() string + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start(ctx context.Context) error