Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2024 Changes in this version + func ListenAndServe(addr string, handler http.Handler, options ...Option) error + func NewACMEClient(directoryURL string, accountKey crypto.Signer) *acme.Client + type Config struct + ACMEClient *acme.Client + CertCache autocert.Cache + Domains []string + Email string + HTTPHandler http.Handler + HTTPSAddr string + HostPolicy autocert.HostPolicy + ReadTimeout time.Duration + RedirectHTTP bool + TLSConfig *tls.Config + TLSConfigCustomiser func(*tls.Config) + WriteTimeout time.Duration + type CustomCache interface + type FileCache struct + Dir string + func (fc FileCache) Delete(ctx context.Context, name string) error + func (fc FileCache) Get(ctx context.Context, name string) ([]byte, error) + func (fc FileCache) Put(ctx context.Context, name string, data []byte) error + type MemoryCache struct + func NewMemoryCache() *MemoryCache + func (mc *MemoryCache) Delete(ctx context.Context, name string) error + func (mc *MemoryCache) Get(ctx context.Context, name string) ([]byte, error) + func (mc *MemoryCache) Put(ctx context.Context, name string, data []byte) error + type Option func(*Config) + func WithACMEClient(client *acme.Client) Option + func WithCertCache(cache autocert.Cache) Option + func WithDomains(domains ...string) Option + func WithEmail(email string) Option + func WithHTTPHandler(handler http.Handler) Option + func WithHTTPSAddr(addr string) Option + func WithHostPolicy(policy autocert.HostPolicy) Option + func WithReadTimeout(timeout time.Duration) Option + func WithRedirectHTTP(redirect bool) Option + func WithTLSConfig(tlsConfig *tls.Config) Option + func WithTLSConfigCustomiser(customiser func(*tls.Config)) Option + func WithWriteTimeout(timeout time.Duration) Option