Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResolverInfo = resolver.ResolverInfo{ Name: "SystemResolver", Type: resolver.ServerTypeMonitor, }
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { RR *ResourceRecord `json:"rr,omitempty"` Raw string `json:"raw"` IfIndex *int `json:"ifindex,omitempty"` }
type DNSMonitor ¶
type DNSMonitor struct {
// contains filtered or unexported fields
}
func New ¶
func New(instance instance) (*DNSMonitor, error)
func (*DNSMonitor) Flush ¶
func (dl *DNSMonitor) Flush() error
Flush flushes the buffer forcing all events to be processed.
func (*DNSMonitor) Manager ¶
func (dl *DNSMonitor) Manager() *mgr.Manager
Manager returns the module manager.
type QueryResult ¶
type QueryResult struct { Ready *bool `json:"ready,omitempty"` State *string `json:"state,omitempty"` Rcode *int `json:"rcode,omitempty"` Errno *int `json:"errno,omitempty"` Question *[]ResourceKey `json:"question,omitempty"` CollectedQuestions *[]ResourceKey `json:"collectedQuestions,omitempty"` Answer *[]Answer `json:"answer,omitempty"` }
type ResourceKey ¶
type ResourceRecord ¶
type ResourceRecord struct { Key ResourceKey `json:"key"` Name *string `json:"name,omitempty"` Address *[]byte `json:"address,omitempty"` }
Click to show internal directories.
Click to hide internal directories.