mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
17 lines
296 B
Go
17 lines
296 B
Go
package watcher
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/yusing/go-proxy/internal/gperr"
|
|
)
|
|
|
|
type fileWatcher struct {
|
|
relPath string
|
|
eventCh chan Event
|
|
errCh chan gperr.Error
|
|
}
|
|
|
|
func (fw *fileWatcher) Events(ctx context.Context) (<-chan Event, <-chan gperr.Error) {
|
|
return fw.eventCh, fw.errCh
|
|
}
|