Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReloader ¶
type FileReloader struct {
// contains filtered or unexported fields
}
FileReloader watches certificate and key files and reloads them when they change.
func NewFileReloader ¶
func NewFileReloader(certPath, keyPath string, logger *zap.Logger) (*FileReloader, error)
NewFileReloader loads the initial certificate/key pair and prepares for reloads.
func (*FileReloader) GetCertificate ¶
func (r *FileReloader) GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate reloads certificate/key as needed and returns the current pair.
Click to show internal directories.
Click to hide internal directories.