Revert "pkg: remove unused filenotify"
This reverts commit ee99b5f2e96aafa982487aadbb78478898ae0c71. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
8cb9b57bc2
commit
e901b002ac
4 changed files with 400 additions and 0 deletions
18
filenotify/fsnotify.go
Normal file
18
filenotify/fsnotify.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package filenotify
|
||||
|
||||
import "gopkg.in/fsnotify.v1"
|
||||
|
||||
// fsNotify wraps the fsnotify package to satisfy the FileNotifer interface
|
||||
type fsNotifyWatcher struct {
|
||||
*fsnotify.Watcher
|
||||
}
|
||||
|
||||
// GetEvents returns the fsnotify event channel receiver
|
||||
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
||||
return w.Watcher.Events
|
||||
}
|
||||
|
||||
// GetErrors returns the fsnotify error channel receiver
|
||||
func (w *fsNotifyWatcher) Errors() <-chan error {
|
||||
return w.Watcher.Errors
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue