From 32f40523ed3083f1f2bc8d3d8138b1368630d684 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Tue, 23 Feb 2021 09:10:19 -0500 Subject: [PATCH] certificate.Store: Mention GetCertificate usage --- certificate/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/certificate/store.go b/certificate/store.go index 15aadbc..e21431f 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -77,6 +77,8 @@ func (s *Store) Add(scope string, cert tls.Certificate) error { // Get retrieves a certificate for the given hostname. // If no matching scope has been registered, Get returns an error. // Get generates new certificates as needed and rotates expired certificates. +// +// Get is suitable for use in a gemini.Server's GetCertificate field. func (s *Store) Get(hostname string) (*tls.Certificate, error) { s.mu.RLock() defer s.mu.RUnlock()