aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-11-01 00:05:00 -0400
committerAdnan Maolood <[email protected]>2020-11-01 00:10:30 -0400
commit7fb1b6c6a4759414ac622cf71bf18ab2681de3f5 (patch)
tree9df71ecc232ac069d6cc89127861c8c37f47322b /server.go
parentRename InsecureTrustAlways to InsecureSkipTrust (diff)
downloadgo-gemini-7fb1b6c6a4759414ac622cf71bf18ab2681de3f5.tar.xz
go-gemini-7fb1b6c6a4759414ac622cf71bf18ab2681de3f5.zip
Update documentationv0.1.4
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.go b/server.go
index 9a46bac..859276a 100644
--- a/server.go
+++ b/server.go
@@ -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)