Versions in this module Expand all Collapse all v0 v0.2.2 Oct 14, 2023 Changes in this version + type ErrorHandler func(e PollerError) + type EventHandler func(e PollerEvent) + type Poller struct + Errors chan PollerError + Events chan PollerEvent + func NewPollWatcher(interval int) *Poller + func (pw *Poller) Add(dir string) + func (pw *Poller) AddPath(path string) + func (pw *Poller) IgnorePath(path string) + func (pw *Poller) IgnorePattern(pattern string) error + func (pw *Poller) OnError(fn func(e PollerError)) + func (pw *Poller) OnEvent(fn func(e PollerEvent)) + func (pw *Poller) Start() + func (pw *Poller) Stop() + func (pw *Poller) Wait() chan struct{} + type PollerError error + type PollerEvent struct + Path string