| 57 | var _ TLSer = (*TLSAutoEncryptConfig)(nil) |
| 58 | |
| 59 | type TLSAutoEncryptConfig struct { |
| 60 | domain string // The domain to request a certificate for in production mode. |
| 61 | email string // Used for Let's Encrypt account registration and important notices. |
| 62 | cacheDir string // Directory to store Let's Encrypt certificates. |
| 63 | httpAddr string // Listen address for the HTTP redirect service (defaults to :80). |
| 64 | enableRedirect bool // Enable HTTP-to-HTTPS redirect service (default: false). |
| 65 | |
| 66 | m *autocert.Manager // Manages certificates automatically. |
| 67 | redirectServer *http.Server // The HTTP redirect server. |
| 68 | } |
| 69 | |
| 70 | func NewTLSEAutoEncryptConfig(domain string, email string, opts ...TLSEncryptOption) *TLSAutoEncryptConfig { |
| 71 | o := defaultTLSEncryptOptions() |
nothing calls this directly
no outgoing calls
no test coverage detected