Documentation ¶
Index ¶
Constants ¶
View Source
const ( InvalidNode nodeType = iota DNS IP )
View Source
const (
DefaultCacheSize = 5000 // default size for maximum query roots in the cache (more nodes are possible)
)
Variables ¶
View Source
var ErrDNSRecordExpired = errors.New("dns record expired")
View Source
var ErrDNSRecordNotFound = errors.New("no such dns record")
View Source
var ErrDataNotFound = errors.New("requested data was not found")
View Source
var ErrKeyNotSupported = errors.New("queried key is not supported")
Functions ¶
This section is empty.
Types ¶
type DNSDatasource ¶
type DNSDatasource struct {
// contains filtered or unexported fields
}
func NewDataSource ¶
func NewDataSource(d *DNSCache) *DNSDatasource
func (DNSDatasource) Get ¶
func (ctx DNSDatasource) Get(key interface{}) (map[string]interface{}, error)
func (DNSDatasource) ID ¶
func (ctx DNSDatasource) ID() string
func (DNSDatasource) Keys ¶
func (ctx DNSDatasource) Keys() []string
func (DNSDatasource) Namespace ¶
func (ctx DNSDatasource) Namespace() string
func (DNSDatasource) Schema ¶
func (ctx DNSDatasource) Schema() string
func (DNSDatasource) Version ¶
func (ctx DNSDatasource) Version() uint
Click to show internal directories.
Click to hide internal directories.