Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
*collector.BaseCollector
}
func NewCollector ¶
func NewCollector() *Collector
type Rule ¶
type Rule struct { Servers []string `label:"Servers" json:"servers,required" description:"List of DNS" example:"223.5.5.5"` Network string `label:"Network" json:"network" description:"Protocol, must be tcp or udp" example:"udp"` Domains []string `label:"Domains" json:"domains,required" description:"List of Domains", example:"www.baidu.com"` RecordType string `` /* 164-byte string literal not displayed */ Port int `label:"Port" json:"port" default:"53" description:"Port"` Timeout int `label:"Timeout" json:"timeout" default:"10" description:"Set timeout"` }
Click to show internal directories.
Click to hide internal directories.