Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "v0.3.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByValue ¶ added in v0.1.0
type ByValue struct{ LookupEntries }
type LogStatement ¶
type LogStatement struct {
Code string
Domain string
Entry string
Reason string
Pathname string
Search Search
}
func (*LogStatement) Error ¶ added in v0.1.0
func (l *LogStatement) Error() string
func (*LogStatement) MarshalJSON ¶
func (stmt *LogStatement) MarshalJSON() ([]byte, error)
type LookupEntries ¶ added in v0.1.0
type LookupEntries []LookupEntry
func (LookupEntries) Len ¶ added in v0.1.0
func (l LookupEntries) Len() int
func (LookupEntries) Swap ¶ added in v0.1.0
func (l LookupEntries) Swap(i, j int)
type LookupEntry ¶ added in v0.1.0
type LookupTXTFunc ¶
type LookupTXTFunc func(name string) (txt []LookupEntry, err error)
func NewUDPLookup ¶ added in v0.1.0
func NewUDPLookup(servers []string, udpSize uint16) LookupTXTFunc
type PathEntries ¶ added in v0.3.0
type PathEntries []PathEntry
type PathEntry ¶
func (*PathEntry) MarshalJSON ¶
type RCodeError ¶ added in v0.2.0
type RCodeError struct {
RCode RCode `json:"rcode"`
Code string `json:"code"`
Name string `json:"error"`
Domain string `json:"domain"`
}
func NewRCodeError ¶ added in v0.2.0
func NewRCodeError(rcode int, domain string) RCodeError
func (RCodeError) Error ¶ added in v0.2.0
func (e RCodeError) Error() string
type Resolver ¶
type Resolver struct {
LookupTXT LookupTXTFunc
}
type Result ¶
type Result struct {
Links map[string][]LookupEntry `json:"links"`
Path PathEntries `json:"path"`
Log []LogStatement `json:"log"`
}
Click to show internal directories.
Click to hide internal directories.