mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f2614f2107
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
18 lines
466 B
Go
18 lines
466 B
Go
package filenotify
|
|
|
|
import "github.com/fsnotify/fsnotify"
|
|
|
|
// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifer interface
|
|
type fsNotifyWatcher struct {
|
|
*fsnotify.Watcher
|
|
}
|
|
|
|
// Events returns the fsnotify event channel receiver
|
|
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
|
return w.Watcher.Events
|
|
}
|
|
|
|
// Errors returns the fsnotify error channel receiver
|
|
func (w *fsNotifyWatcher) Errors() <-chan error {
|
|
return w.Watcher.Errors
|
|
}
|