aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-12-17 19:54:46 -0500
committerAdnan Maolood <[email protected]>2020-12-17 19:54:46 -0500
commit805a80dddf43dbab54dfb5aa9238e054e839e293 (patch)
tree9584b6579d76b6514c80ddb208016ad7c9e8b26c /client.go
parentDecouple Client from KnownHostsFile (diff)
downloadgo-gemini-805a80dddf43dbab54dfb5aa9238e054e839e293.tar.xz
go-gemini-805a80dddf43dbab54dfb5aa9238e054e839e293.zip
Update GetCertificate documentation
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.go b/client.go
index 8e9e808..e318272 100644
--- a/client.go
+++ b/client.go
@@ -24,7 +24,9 @@ type Client struct {
// the request of a server.
// If GetCertificate is nil or the returned error is not nil,
// the request will not be sent again and the response will be returned.
- GetCertificate func(scope, path string) (tls.Certificate, error)
+ //
+ // To specify a certificate ahead of time, see Request.Certificate.
+ GetCertificate func(hostname, path string) (tls.Certificate, error)
// GetInput is called to retrieve input when the server requests it.
// If GetInput is nil or returns false, no input will be sent and