GoDoxy/internal/watcher/file_watcher.go

17 lines
290 B
Go

package watcher
import (
"context"
E "github.com/yusing/go-proxy/internal/error"
)
type fileWatcher struct {
relPath string
eventCh chan Event
errCh chan E.Error
}
func (fw *fileWatcher) Events(ctx context.Context) (<-chan Event, <-chan E.Error) {
return fw.eventCh, fw.errCh
}