Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceConfig ¶
func GetDeviceConfig(dnsServer []string) *device.EtherTable
GetDeviceConfig 获取网卡配置信息
func GetResolvers ¶
Types ¶
type OptionMethod ¶
type OptionMethod string
const ( VerifyType OptionMethod = "verify" EnumType OptionMethod = "enum" TestType OptionMethod = "test" )
type Options ¶
type Options struct {
Rate int64 // 每秒发包速率
Domain chan string // 域名输入
Resolvers []string // dns resolvers
Silent bool // 安静模式
TimeOut int // 超时时间 单位(秒)
Retry int // 最大重试次数
Method OptionMethod // verify模式 enum模式 test模式
Writer []outputter.Output // 输出结构
ProcessBar processbar.ProcessBar
EtherInfo *device2.EtherTable // 网卡信息
SpecialResolvers map[string][]string // 可针对特定域名使用的dns resolvers
WildcardFilterMode string // 泛解析过滤模式: "basic", "advanced", "none"
WildIps []string
Predict bool // 是否开启预测模式
}
Click to show internal directories.
Click to hide internal directories.