Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CertCallbackRefreshDuration = 5 * time.Minute
CertCallbackRefreshDuration is exposed so that integration tests can crank up the reload speed.
Functions ¶
func CachingCertificateLoader ¶
func CachingCertificateLoader(certFile, keyFile string) func() (*tls.Certificate, error)
CachingCertificateLoader ensures that we don't hammer the filesystem when opening many connections the underlying cert files are read at most once every second
func StartClientCertRotating ¶
func StartClientCertRotating(reload reloadFunc, conn Connection)
Types ¶
type Connection ¶
type Connection interface {
Close() error
}
Click to show internal directories.
Click to hide internal directories.