Versions in this module Expand all Collapse all v1 v1.1.0 May 14, 2023 v1.0.0 Feb 8, 2021 Changes in this version + var ErrCacheMiss = errors.New("acme/autocert: certificate cache miss") + func AcceptTOS(tosURL string) bool + func NewListener(domains ...string) net.Listener + type Cache interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) ([]byte, error) + Put func(ctx context.Context, key string, data []byte) error + type DirCache string + func (d DirCache) Delete(ctx context.Context, name string) error + func (d DirCache) Get(ctx context.Context, name string) ([]byte, error) + func (d DirCache) Put(ctx context.Context, name string, data []byte) error + type HostPolicy func(ctx context.Context, host string) error + func HostWhitelist(hosts ...string) HostPolicy + type Manager struct + Cache Cache + Client *acme.Client + Email string + ForceRSA bool + HostPolicy HostPolicy + Prompt func(tosURL string) bool + RenewBefore time.Duration + func (m *Manager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error) + func (m *Manager) HTTPHandler(fallback http.Handler) http.Handler + func (m *Manager) Listener() net.Listener