Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChooseOptions ¶
ChooseOptions 选择器的选项
type Chooser ¶
type Chooser interface { // Choose 从给定的 IP 地址列表中选择一批 IP 地址用于发送请求 Choose(context.Context, []net.IP, *ChooseOptions) []net.IP // FeedbackGood 反馈一批 IP 地址请求成功 FeedbackGood(context.Context, []net.IP, *FeedbackOptions) // FeedbackBad 反馈一批 IP 地址请求失败 FeedbackBad(context.Context, []net.IP, *FeedbackOptions) }
Chooser 选择器接口
func NewShuffleChooser ¶
NewShuffleChooser 创建随机混淆选择器
func NewSmartIPChooser ¶
func NewSmartIPChooser(options *SmartIPChooserConfig) Chooser
NewSmartIPChooser 创建智能 IP 选择器
func NewSubnetChooser ¶
func NewSubnetChooser(options *SubnetChooserConfig) Chooser
NewSubnetChooser 创建子网选择器
type FeedbackOptions ¶
type FeedbackOptions struct { // Domain 是待反馈的域名 Domain string }
FeedbackOptions 反馈的选项
type IPChooserConfig ¶
IPChooserConfig IP 选择器的选项
type SmartIPChooserConfig ¶
type SmartIPChooserConfig IPChooserConfig
SmartIPChooserConfig 智能 IP 选择器的选项
Click to show internal directories.
Click to hide internal directories.