Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hlandau committed Oct 21, 2014
1 parent 13d64f5 commit 3f88db3
Show file tree
Hide file tree
Showing 8 changed files with 295 additions and 157 deletions.
16 changes: 16 additions & 0 deletions abstract/abstract.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package abstract
import "github.com/miekg/dns"

type Backend interface {
// Lookup all resource records having a given fully-qualified owner name,
// regardless of type or class. Returns a slice of all those resource records
// or an error.
//
// The returned slice may contain both authoritative and non-authoritative records
// (for example, NS records for delegations and glue records.)
//
// The existence of wildcard records will be determined by doing a lookup for a name
// like "*.example.com", so there is no need to process the wildcard logic other than
// to make sure such a lookup functions correctly.
Lookup(qname string) (rrs []dns.RR, err error)
}
Loading

0 comments on commit 3f88db3

Please sign in to comment.