tls

package
v0.0.0-...-c3677c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL