notify.go 294 B

123456789101112131415
  1. package watcher
  2. // Notification is the delegate methods from the Notifier
  3. type Notification interface {
  4. WatcherItemDidChange(string)
  5. WatcherDidError(error)
  6. }
  7. // Notifier is the base interface for file watching
  8. type Notifier interface {
  9. Start(Notification)
  10. Add(string) error
  11. Shutdown()
  12. }