Versions in this module Expand all Collapse all v1 v1.0.0 Jun 21, 2026 Changes in this version + const CONTENT_TYPE + const CONTENT_TYPE_JSON + const CONTENT_TYPE_PLAIN + func DefaultLogger() *slog.Logger + type CheckFunc func(context.Context) error + type Config struct + type NamedCheck struct + type Server struct + func New(options []ServerOption) *Server + func (s *Server) Run() error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + func (s Server) Handler() http.Handler + type ServerOption func(*Config) + func WithAddr(addr string) ServerOption + func WithHandler(h http.Handler) ServerOption + func WithIdleTimeout(d time.Duration) ServerOption + func WithLivenessPath(path string) ServerOption + func WithLogger(logger *slog.Logger) ServerOption + func WithMetricsHandler(h http.Handler) ServerOption + func WithPortFromEnv() ServerOption + func WithReadHeaderTimeout(d time.Duration) ServerOption + func WithReadTimeout(d time.Duration) ServerOption + func WithReadinessCheck(name string, check CheckFunc) ServerOption + func WithReadinessPath(path string) ServerOption + func WithShutdownHook(hook ShutdownHook) ServerOption + func WithShutdownTimeout(d time.Duration) ServerOption + func WithWriteTimeout(d time.Duration) ServerOption + func WithoutDefaultProbes() ServerOption + type ShutdownHook func(context.Context) error