restructure inotify package and add some tests

This commit is contained in:
Dominic Breuker
2018-02-25 14:21:16 +01:00
parent f5ca2dad75
commit d1c18d901a
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
}