Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigWatcher ¶
type ConfigWatcher struct {
// contains filtered or unexported fields
}
ConfigWatcher watches config files and calls OnChange when modifications are detected.
func New ¶
func New(opts ...Option) *ConfigWatcher
func (*ConfigWatcher) Init ¶
func (w *ConfigWatcher) Init(app modular.Application) error
Init satisfies the modular.Module interface. Captures the application logger if one was not provided via WithLogger.
func (*ConfigWatcher) Name ¶
func (w *ConfigWatcher) Name() string
type Option ¶
type Option func(*ConfigWatcher)
Option configures a ConfigWatcher.
func WithDebounce ¶
func WithLogger ¶
func WithOnChange ¶
Click to show internal directories.
Click to hide internal directories.