restructure inotify package and add some tests

This commit is contained in:
Dominic Breuker committed 2018-03-12 08:58:01 +01:00
1 parent f5ca2dad75
commit d1c18d901a
16 files changed
+315 -166

No files matched your search

+5
View File
@@ -17,6 +17,11 @@ func NewProcfsScanner() *ProcfsScanner {
func (p *ProcfsScanner) Setup(triggerCh chan struct{}, interval time.Duration) (chan string, error) {
psEventCh := make(chan string)
go func() {
for {
<-triggerCh
}
}()
return psEventCh, nil
}