diff options
| author | Adnan Maolood <[email protected]> | 2020-11-01 00:05:00 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-11-01 00:10:30 -0400 |
| commit | 7fb1b6c6a4759414ac622cf71bf18ab2681de3f5 (patch) | |
| tree | 9df71ecc232ac069d6cc89127861c8c37f47322b /server.go | |
| parent | Rename InsecureTrustAlways to InsecureSkipTrust (diff) | |
| download | go-gemini-7fb1b6c6a4759414ac622cf71bf18ab2681de3f5.tar.xz go-gemini-7fb1b6c6a4759414ac622cf71bf18ab2681de3f5.zip | |
Update documentationv0.1.4
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |