proxy

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateInterval = 5 * time.Minute // 代理池更新间隔
	CheckInterval  = 5 * time.Minute // 改为10分钟检测一次
)

Variables

View Source
var ProxyAPI string

Functions

func GetProxy added in v1.3.7

func GetProxy() (string, error)

GetProxy 获取一个代理

func GetProxyCount added in v1.3.5

func GetProxyCount() (int64, error)

GetProxyCount 获取当前代理池中的代理数量

func SetProxyAPI added in v1.3.1

func SetProxyAPI(url string)

SetProxyAPI 设置代理API URL

func StartIPChecker added in v1.3.8

func StartIPChecker(ctx context.Context)

StartIPChecker 启动IP检测器

func StartProxyPoolManager added in v1.3.5

func StartProxyPoolManager(ctx context.Context)

StartProxyPoolManager 启动代理池管理器

func UpdateProxyPool added in v1.3.5

func UpdateProxyPool() error

UpdateProxyPool 更新代理池

Types

This section is empty.

Jump to

Keyboard shortcuts

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