Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var Config = Configuration{Timeout: time.Second * time.Duration(2), RetryTimes: uint(0)}
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
func (*Configuration) SetTimeout ¶
func (c *Configuration) SetTimeout(seconds uint)
type Resolver ¶
func NewResolver ¶
type Result ¶
type Result struct {
Server string
ResMap map[string][]*ResultItem
}
type ResultItem ¶
type ResultItem struct {
Record string
Type string
Ttl time.Duration
Priority uint16
Content string
}
func Exchange ¶
func Exchange(target string, server string, queryType QueryType) ([]*ResultItem, error)
func NewResultItemWithDnsRR ¶
func NewResultItemWithDnsRR(queryType QueryType, answer dns.RR) (resultItem *ResultItem)
Click to show internal directories.
Click to hide internal directories.