options

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Band2Rate

func Band2Rate(bandWith string) int64

func GetDeviceConfig

func GetDeviceConfig(dnsServer []string) *device.EtherTable

GetDeviceConfig 获取网卡配置信息

func GetResolvers

func GetResolvers(resolvers []string) []string

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 // 是否开启预测模式
}

func (*Options) Check

func (opt *Options) Check()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL