Versions in this module Expand all Collapse all v0 v0.5.0-dev.1 Aug 14, 2026 v0.4.0 Aug 14, 2026 Changes in this version + type Group struct + func NewGroup(prefix string) *Group + func (g *Group) Handle(method, pattern string, handler http.Handler, mw ...Middleware) + func (g *Group) HandleFunc(method, pattern string, handler http.HandlerFunc, mw ...Middleware) + func (g *Group) Mount(child *Group) + func (g *Group) Use(mw ...Middleware) + type Module struct + func NewHandlerModule(prefix string, handler http.Handler, mw ...Middleware) *Module + func NewModule(g *Group) *Module + func (m *Module) Prefix() string + func (m *Module) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Router struct + func NewRouter() *Router + func (r *Router) Handle(pattern string, handler http.Handler) + func (r *Router) Mount(m *Module) + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (r *Router) Use(mw ...Middleware) v0.4.0-dev.1 Aug 13, 2026 v0.3.1 Aug 2, 2026 v0.3.0 Aug 2, 2026 v0.2.0 Jul 31, 2026 v0.1.0 Jul 28, 2026 Changes in this version + const HealthPath + const JSONMediaType + const ProblemMediaType + const ProblemTypeBlank + const ReadyPath + func Chain(handler http.Handler, middleware ...Middleware) http.Handler + func Liveness() http.Handler + func Readiness(checks ...Check) http.Handler + func RegisterHealth(m Mounter, checks ...Check) + func WriteJSON(w http.ResponseWriter, status int, data any) error + func WriteProblem(w http.ResponseWriter, r *http.Request, status int, title, detail string) error + func WriteProblemWith(w http.ResponseWriter, r *http.Request, status int, title, detail string, ...) error + type Check struct + Checker lifecycle.ReadinessChecker + Name string + type Config struct + Env Env + Host string + IdleTimeout config.Duration + Port int + ReadHeaderTimeout config.Duration + ReadTimeout config.Duration + WriteTimeout config.Duration + func (c *Config) Addr() string + func (c *Config) Finalize() error + func (c *Config) Merge(src *Config) + type Env struct + Host string + IdleTimeout string + Port string + ReadHeaderTimeout string + ReadTimeout string + WriteTimeout string + func NewEnv(prefix string) Env + type Middleware func(http.Handler) http.Handler + func RequestLogger(logger *slog.Logger) Middleware + type Mounter interface + Handle func(pattern string, handler http.Handler) + type Problem struct + Detail string + Instance string + Status int + Title string + Type string + func (p Problem) Write(w http.ResponseWriter) error + type Server struct + func NewServer(cfg Config, handler http.Handler) *Server + func (s *Server) Addr() string + func (s *Server) Err() <-chan error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error