Versions in this module Expand all Collapse all v4 v4.9.0 Jul 31, 2024 Changes in this version + type Option func(o *Options) + func ACMEHosts(hosts ...string) Option + func ACMEProvider(p acme.Provider) Option + func CORSConfig(c *cors.Config) Option + func EnableACME(b bool) Option + func EnableCORS(b bool) Option + func EnableTLS(b bool) Option + func Logger(l logger.Logger) Option + func Resolver(r resolver.Resolver) Option + func TLSConfig(t *tls.Config) Option + func WrapHandler(w Wrapper) Option + type Options struct + ACMEHosts []string + ACMEProvider acme.Provider + CORSConfig *cors.Config + EnableACME bool + EnableCORS bool + EnableTLS bool + Logger logger.Logger + Resolver resolver.Resolver + TLSConfig *tls.Config + Wrappers []Wrapper + func NewOptions(opts ...Option) Options + type Server interface + Address func() string + Handle func(path string, handler http.Handler) + Init func(opts ...Option) error + Start func() error + Stop func() error + type Wrapper func(h http.Handler) http.Handler