WatcherOptions configures NewWatcher.
| 26 | |
| 27 | // WatcherOptions configures NewWatcher. |
| 28 | type WatcherOptions struct { |
| 29 | Root string // directory to watch (recursively) |
| 30 | Debounce time.Duration // coalesce events within this window; defaults to 200ms |
| 31 | } |
| 32 | |
| 33 | // NewWatcher starts a watcher on opts.Root. Events is buffered size 1; callers |
| 34 | // that lag will coalesce further (no missed reloads, just batched). |
nothing calls this directly
no outgoing calls
no test coverage detected