diff options
Diffstat (limited to 'plugin/backend.go')
-rw-r--r-- | plugin/backend.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/backend.go b/plugin/backend.go index b520ce390..7b5b2f467 100644 --- a/plugin/backend.go +++ b/plugin/backend.go @@ -26,6 +26,17 @@ type ServiceBackend interface { // IsNameError return true if err indicated a record not found condition IsNameError(err error) bool + + Transferer +} + +// Transferer defines an interface for backends that provide AXFR of all records. +type Transferer interface { + // Serial returns a SOA serial number to construct a SOA record. + Serial(state request.Request) uint32 + + // MinTTL returns the minimum TTL to be used in the SOA record. + MinTTL(state request.Request) uint32 } // Options are extra options that can be specified for a lookup. |