experiment with some tests

This commit is contained in:
Dominic Breuker committed 2018-03-12 08:58:01 +01:00
1 parent a517fe25de
commit d59ec7f1a8
7 files changed
+215 -41

No files matched your search

+12
View File
@@ -6,6 +6,18 @@ import (
"golang.org/x/sys/unix"
)
type InotifyWatcher struct{}
func NewInotifyWatcher() *InotifyWatcher {
return &InotifyWatcher{}
}
func (i *InotifyWatcher) Setup(rdirs, dirs []string) (chan struct{}, chan string, error) {
triggerCh := make(chan struct{})
fsEventCh := make(chan string)
return triggerCh, fsEventCh, nil
}
type Inotify struct {
fd int
watchers map[int]*watcher