mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
experiment with some tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user