Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnChangedFunc ¶
OnChangedFunc is a called when the file has been modified
type Reloader ¶
type Reloader struct {
// contains filtered or unexported fields
}
Reloader keeps necessary info to provide reloaded certificate
func NewReloader ¶
func NewReloader(filePath string, checkInterval time.Duration, onChangedFunc OnChangedFunc) (*Reloader, error)
NewReloader return an instance of the file re-loader
func (*Reloader) LoadedCount ¶
LoadedCount returns the number of times the pair was loaded from disk
Click to show internal directories.
Click to hide internal directories.