Versions in this module Expand all Collapse all v0 v0.13.0 Apr 8, 2024 Changes in this version type Config + TLS TLSConfig + Version VersionResponseConfig + type TLSConfig struct + CertFile string + KeyFile string + NoCheckCertificate bool + type VersionResponseConfig struct + CType string + Format string + Prefix string v0.12.24 Jan 2, 2024 Changes in this version type Config + VersionCType string v0.12.23 Dec 23, 2023 Changes in this version + type Config struct + GracePeriod time.Duration + IPHeader string + Listen string + MaxHeaderBytes int + ReadTimeout time.Duration + UserHeader string + VersionFormat string + VersionPrefix string + WriteTimeout time.Duration + func (cfg Config) WithAccessLog(handler http.Handler) http.Handler + func (cfg Config) WithETag(handler http.Handler) http.Handler + type Handler func(http.Handler) http.Handler + type Service struct + func New(cfg Config) *Service + func (srv *Service) Use(handler Handler) *Service + func (srv *Service) WithListener(listener net.Listener) *Service + func (srv *Service) WithShutdown(worker Worker) *Service + func (srv *Service) WithStatic(fSystem fs.FS) *Service + func (srv *Service) WithVersion(version string) *Service + func (srv Service) Run(ctxParent context.Context, workers ...Worker) error + func (srv Service) ServeMux() *http.ServeMux + type Worker func(ctx context.Context) error