aboutsummaryrefslogtreecommitdiff
path: root/plugin/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/backend.go')
-rw-r--r--plugin/backend.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/backend.go b/plugin/backend.go
index fad61d418..9abb277f7 100644
--- a/plugin/backend.go
+++ b/plugin/backend.go
@@ -3,6 +3,7 @@ package plugin
import (
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/request"
+ "golang.org/x/net/context"
"github.com/miekg/dns"
)
@@ -37,6 +38,10 @@ type Transferer interface {
// MinTTL returns the minimum TTL to be used in the SOA record.
MinTTL(state request.Request) uint32
+
+ // Transfer handles a zone transfer it writes to the client just
+ // like any other handler.
+ Transfer(ctx context.Context, state request.Request) (int, error)
}
// Options are extra options that can be specified for a lookup.