Documentation ¶
Index ¶
- type ErrorHandler
- type EventHandler
- type 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
- type PollerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler func(e PollerError)
type EventHandler ¶
type EventHandler func(e PollerEvent)
type Poller ¶
type Poller struct { Events chan PollerEvent Errors chan PollerError // contains filtered or unexported fields }
func NewPollWatcher ¶
func (*Poller) IgnorePath ¶
func (*Poller) IgnorePattern ¶
func (*Poller) OnError ¶
func (pw *Poller) OnError(fn func(e PollerError))
func (*Poller) OnEvent ¶
func (pw *Poller) OnEvent(fn func(e PollerEvent))
type PollerError ¶
type PollerError error
type PollerEvent ¶
type PollerEvent struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.