Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2016 Changes in this version + const DefaultAddress + const DefaultKeyType + const DefaultRenewCheck + const DefaultRenewTime + const DefaultRetryDelay + const DefaultServer + var ErrNotHandled = errors.New("not handled") + func TOSAgree(agreementURL string) bool + func TOSDecline(agreementURL string) bool + type AcmeWrapper struct + Config Config + func New(c Config) (*AcmeWrapper, error) + func (w *AcmeWrapper) AcmeDisabled(set bool) error + func (w *AcmeWrapper) AddSNI(domain string, cert *tls.Certificate) + func (w *AcmeWrapper) CertNeedsUpdate() bool + func (w *AcmeWrapper) GetCertificate() *tls.Certificate + func (w *AcmeWrapper) GetEmail() string + func (w *AcmeWrapper) GetPrivateKey() crypto.PrivateKey + func (w *AcmeWrapper) GetRegistration() *acme.RegistrationResource + func (w *AcmeWrapper) RemSNI(domain string) + func (w *AcmeWrapper) Renew() (err error) + func (w *AcmeWrapper) SetNewCert(certfile, keyfile string) error + func (w *AcmeWrapper) TLSConfig() *tls.Config + func (w *AcmeWrapper) TLSConfigGetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) + type Config struct + AcmeDisabled bool + Address string + Domains []string + Email string + LoadFileCallback func(path string) (contents []byte, err error) + PrivateKeyFile string + PrivateKeyType acme.KeyType + RegistrationFile string + RenewCallback func() + RenewCheck time.Duration + RenewFailedCallback func(error) + RenewTime time.Duration + RetryDelay time.Duration + SaveFileCallback func(path string, contents []byte) error + Server string + TLSCertFile string + TLSKeyFile string + TOSCallback TOSCallback + type LoggerInterface interface + Printf func(format string, v ...interface{}) + var Logger LoggerInterface + type TOSCallback func(agreementURL string) bool