check

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Available atomic.Uint32
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 处理代理检测的主要结构体

func NewProxyChecker

func NewProxyChecker(proxyCount int) *ProxyChecker

NewProxyChecker 创建新的检测器实例

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 Check

func Check() ([]Result, error)

Check 执行代理检测的主函数

func FilterResults added in v1.4.6

func FilterResults(results []Result) []Result

FilterResults 根据配置的正则表达式过滤节点 只有节点名称匹配任一正则表达式的节点才会被保留

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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