Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Available atomic.Uint32
View Source
var Bucket *ratelimit.Bucket
View Source
var ForceClose atomic.Bool
View Source
var Progress atomic.Uint32
View Source
var ProxyCount atomic.Uint32
View Source
var TotalBytes atomic.Uint64
Functions ¶
This section is empty.
Types ¶
type ProxyChecker ¶
type ProxyChecker struct {
// contains filtered or unexported fields
}
ProxyChecker 处理代理检测的主要结构体
type ProxyClient ¶
type ProxyClient struct {
*http.Client
BytesRead *uint64
// contains filtered or unexported fields
}
CreateClient creates and returns an http.Client with a Close function
func CreateClient ¶
func CreateClient(mapping map[string]any) *ProxyClient
func (*ProxyClient) Close ¶
func (pc *ProxyClient) Close()
Close closes the proxy client and cleans up resources 防止底层库有一些泄露,所以这里手动关闭
type Result ¶
type Result struct {
Proxy map[string]any
Openai bool
OpenaiWeb bool
Youtube string
Netflix bool
Google bool
Cloudflare bool
Disney bool
Gemini string
TikTok string
IP string
IPRisk string
Country string
}
Result 存储节点检测结果
func FilterResults ¶ added in v1.4.6
FilterResults 根据配置的正则表达式过滤节点 只有节点名称匹配任一正则表达式的节点才会被保留
Click to show internal directories.
Click to hide internal directories.