Update documentation

This commit is contained in:
Adnan Maolood
2020-11-01 00:05:00 -04:00
parent 0d3230a7d5
commit 7fb1b6c6a4
2 changed files with 8 additions and 35 deletions

View File

@@ -18,9 +18,6 @@ type Server struct {
// If Addr is empty, the server will listen on the address ":1965".
Addr string
// Certificates contains the certificates used by the server.
Certificates CertificateStore
// ReadTimeout is the maximum duration for reading a request.
ReadTimeout time.Duration
@@ -28,6 +25,9 @@ type Server struct {
// writes of the response.
WriteTimeout time.Duration
// Certificates contains the certificates used by the server.
Certificates CertificateStore
// CreateCertificate, if not nil, will be called to create a new certificate
// if the current one is expired or missing.
CreateCertificate func(hostname string) (tls.Certificate, error)