mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 08:48:32 +02:00
restructured the project to comply community guideline, for others check release note
This commit is contained in:
17
internal/watcher/file_watcher.go
Normal file
17
internal/watcher/file_watcher.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package watcher
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
E "github.com/yusing/go-proxy/internal/error"
|
||||
)
|
||||
|
||||
type fileWatcher struct {
|
||||
relPath string
|
||||
eventCh chan Event
|
||||
errCh chan E.NestedError
|
||||
}
|
||||
|
||||
func (fw *fileWatcher) Events(ctx context.Context) (<-chan Event, <-chan E.NestedError) {
|
||||
return fw.eventCh, fw.errCh
|
||||
}
|
||||
Reference in New Issue
Block a user