tlsreload

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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