Documentation ¶ Index ¶ type Debouncer func NewDebouncer(rate time.Duration, onChange func()) *Debouncer func (d *Debouncer) OnChange() type Watcher func NewWatcher(logger logging.Logger, dir string, onChange func()) (*Watcher, error) func (w *Watcher) Close() func (w *Watcher) Watch() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Debouncer ¶ type Debouncer struct { // contains filtered or unexported fields } func NewDebouncer ¶ func NewDebouncer(rate time.Duration, onChange func()) *Debouncer func (*Debouncer) OnChange ¶ func (d *Debouncer) OnChange() type Watcher ¶ type Watcher struct { // contains filtered or unexported fields } func NewWatcher ¶ func NewWatcher(logger logging.Logger, dir string, onChange func()) (*Watcher, error) func (*Watcher) Close ¶ func (w *Watcher) Close() func (*Watcher) Watch ¶ func (w *Watcher) Watch() error Source Files ¶ View all Source files debounce.go watcher.go Click to show internal directories. Click to hide internal directories.