Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateGetter

type CertificateGetter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

    CertificateGetter satisfies ReloadFunc and its GetCertificate method satisfies the tls.GetCertificate function signature. Currently it does not allow changing paths after the fact.

    func NewCertificateGetter

    func NewCertificateGetter(certFile, keyFile, passphrase string) *CertificateGetter

    func (*CertificateGetter) GetCertificate

    func (cg *CertificateGetter) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)

    func (*CertificateGetter) Reload

    func (cg *CertificateGetter) Reload() error

    type ReloadFunc

    type ReloadFunc func() error

      ReloadFunc are functions that are called when a reload is requested

      Source Files