Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyRunning = errors.New("already running")
)
Functions ¶
func FilePairName ¶
func RemoveSubdirectories ¶
func WildcardFor ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) PopModified ¶
type Logger ¶
type Logger interface { logger.OutputReceiver logger.ErrorOutputReceiver }
type Reloader ¶
type Reloader struct { Lock sync.Mutex Log Logger Dirs []string ReloadInterval time.Duration Watch bool // contains filtered or unexported fields }
func NewReloader ¶
func NewReloader(ctx context.Context, opts ...ReloaderOption) (*Reloader, error)
func (*Reloader) GetCertificate ¶
func (r *Reloader) GetCertificate(helo *tls.ClientHelloInfo) (*tls.Certificate, error)
type ReloaderOption ¶
type ReloaderOption func(*Reloader)
func OptReloaderDirs ¶
func OptReloaderDirs(dirs ...string) ReloaderOption
func OptReloaderInterval ¶
func OptReloaderInterval(inv time.Duration) ReloaderOption
func OptReloaderLogger ¶
func OptReloaderLogger(log Logger) ReloaderOption
func OptReloaderWatch ¶
func OptReloaderWatch(watch bool) ReloaderOption
Click to show internal directories.
Click to hide internal directories.