mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
refactor and organize code
This commit is contained in:
@@ -3,12 +3,12 @@ package watcher
|
||||
import (
|
||||
"context"
|
||||
|
||||
E "github.com/yusing/go-proxy/internal/error"
|
||||
"github.com/yusing/go-proxy/internal/gperr"
|
||||
"github.com/yusing/go-proxy/internal/watcher/events"
|
||||
)
|
||||
|
||||
type Event = events.Event
|
||||
|
||||
type Watcher interface {
|
||||
Events(ctx context.Context) (<-chan Event, <-chan E.Error)
|
||||
Events(ctx context.Context) (<-chan Event, <-chan gperr.Error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user