Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedCertificateLoader ¶
type CachedCertificateLoader struct { CertPath string KeyPath string // contains filtered or unexported fields }
func (*CachedCertificateLoader) GetCertificate ¶
func (c *CachedCertificateLoader) GetCertificate(nowFunc func() time.Time) (*tls.Certificate, error)
Get Certificate uses the cachedCertificateLoader struct to automatically reload the certificate from disk every hour
Click to show internal directories.
Click to hide internal directories.