notify.go 166 B

123456789101112
  1. package watch
  2. type FileEvent struct {
  3. Path string
  4. }
  5. type Notify interface {
  6. Close() error
  7. Add(name string) error
  8. Events() chan FileEvent
  9. Errors() chan error
  10. }