mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Modify several fun notes in fsnotify.go
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
b8a08ddd69
commit
ff2c898652
1 changed files with 3 additions and 3 deletions
|
@ -2,17 +2,17 @@ package filenotify
|
||||||
|
|
||||||
import "gopkg.in/fsnotify.v1"
|
import "gopkg.in/fsnotify.v1"
|
||||||
|
|
||||||
// fsNotify wraps the fsnotify package to satisfy the FileNotifer interface
|
// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifer interface
|
||||||
type fsNotifyWatcher struct {
|
type fsNotifyWatcher struct {
|
||||||
*fsnotify.Watcher
|
*fsnotify.Watcher
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetEvents returns the fsnotify event channel receiver
|
// Events returns the fsnotify event channel receiver
|
||||||
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
||||||
return w.Watcher.Events
|
return w.Watcher.Events
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetErrors returns the fsnotify error channel receiver
|
// Errors returns the fsnotify error channel receiver
|
||||||
func (w *fsNotifyWatcher) Errors() <-chan error {
|
func (w *fsNotifyWatcher) Errors() <-chan error {
|
||||||
return w.Watcher.Errors
|
return w.Watcher.Errors
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue