diff options
Diffstat (limited to 'middleware/proxy/exchanger.go')
-rw-r--r-- | middleware/proxy/exchanger.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/middleware/proxy/exchanger.go b/middleware/proxy/exchanger.go index 29974a289..78c80b8b6 100644 --- a/middleware/proxy/exchanger.go +++ b/middleware/proxy/exchanger.go @@ -8,11 +8,9 @@ import ( // Exchanger is an interface that specifies a type implementing a DNS resolver that // can use whatever transport it likes. type Exchanger interface { - Exchange(request.Request) (*dns.Msg, error) - SetUpstream(Upstream) error // (Re)set the upstream - OnStartup() error - OnShutdown() error - Protocol() protocol -} + Exchange(addr string, state request.Request) (*dns.Msg, error) + Protocol() string -type protocol string + OnStartup(*Proxy) error + OnShutdown(*Proxy) error +} |