acme string
This commit is contained in:
		| @@ -25,4 +25,6 @@ type Provider interface { | ||||
| 	Listen(...string) (net.Listener, error) | ||||
| 	// TLSConfig returns a tls config | ||||
| 	TLSConfig(...string) (*tls.Config, error) | ||||
| 	// Implementation of the acme provider | ||||
| 	String() string | ||||
| } | ||||
|   | ||||
| @@ -40,6 +40,10 @@ func (a *autocertProvider) TLSConfig(hosts ...string) (*tls.Config, error) { | ||||
| 	return m.TLSConfig(), nil | ||||
| } | ||||
|  | ||||
| func (a *autocertProvider) String() string { | ||||
| 	return "autocert" | ||||
| } | ||||
|  | ||||
| // New returns an autocert acme.Provider | ||||
| func NewProvider() acme.Provider { | ||||
| 	return &autocertProvider{} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user