restructure inotify package and add some tests

This commit is contained in:
Dominic Breuker
2018-02-25 14:21:16 +01:00
parent d59ec7f1a8
commit dd123848f2
16 changed files with 315 additions and 166 deletions

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
}