Versions in this module Expand all Collapse all v2 v2.9.3 Mar 2, 2021 v2.9.2 Mar 2, 2021 Changes in this version + type Option func(o *Options) + func ACMEHosts(hosts ...string) Option + func ACMEProvider(p acme.Provider) Option + func EnableACME(b bool) Option + func EnableCORS(b bool) Option + func EnableTLS(b bool) 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 + EnableACME bool + EnableCORS bool + EnableTLS bool + Resolver resolver.Resolver + TLSConfig *tls.Config + Wrappers []Wrapper + 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