Documentation
¶
Index ¶
- Variables
- func ActiveSpeedTestTask()
- func BestNodeTask()
- func CrawlBestNode()
- func CrawlGo()
- func CrawlTask()
- func ExtractHostPort(link string) (addr string, err error)
- func GeoIPTask()
- func InitConfigAndGetters(path string) (err error)
- func IsIPv6(addr string) bool
- func ProbeAndMarkAnyTLS(nodes []cache.BestNode) []cache.BestNode
- func RefreshProviderCache(pl proxy.ProxyList)
- func RunExclusive(name string, fn func()) bool
- func SpeedTest(proxies proxy.ProxyList)
- func SpeedTestTask()
- func SubNiceCfProxyIp(format string, distNodeCountry string, isIPV6 bool) (s string, err error)
- func SubNiceCfProxyIpProvider(format string, isp string, distNodeCountry string, isIPV6 bool) (s string, err error)
- func SubNiceCfProxyIpTop20(format string, distNodeCountry string, isConvertIp bool, isIPV6 bool) (s string, err error)
- func SubNiceCfProxySub(format string, sub string, distNodeCountry string, isIPV6 bool) (s string, err error)
- func SubNiceProxyIp(format string, distNodeCountry string, proxyCountryIsoCode string, limit int, ...) (s string, err error)
- func Unique[T comparable](s []T) []T
- type CfIpProvider
- type CfIpTop20
- type Format
Constants ¶
This section is empty.
Variables ¶
View Source
var Getters = make([]getter.Getter, 0)
Functions ¶
func ActiveSpeedTestTask ¶ added in v1.1.23
func ActiveSpeedTestTask()
ActiveSpeedTestTask 活跃节点高频测速任务
func CrawlBestNode ¶ added in v0.10.3
func CrawlBestNode()
func ExtractHostPort ¶ added in v0.10.0
func InitConfigAndGetters ¶
func ProbeAndMarkAnyTLS ¶ added in v1.1.57
ProbeAndMarkAnyTLS 并发探测 best 节点列表(SNI proxy 入口可用性), 返回带 AnyTLS 标记的新切片(不修改入参)。 未启用探测或无可探测国家凭据时原样返回。
func RefreshProviderCache ¶ added in v1.1.23
RefreshProviderCache 更新各客户端静态订阅文本缓存
func RunExclusive ¶ added in v1.1.23
RunExclusive 串行执行任务;已有任务在运行则跳过。返回是否实际执行。
func SubNiceCfProxyIp ¶ added in v1.0.4
func SubNiceCfProxyIpProvider ¶ added in v1.0.7
func SubNiceCfProxyIpProvider(format string, isp string, distNodeCountry string, isIPV6 bool) (s string, err error)
SubNiceCfProxyIpProvider 获取 https://vps789.com/openApi/cfIpApi
func SubNiceCfProxyIpTop20 ¶ added in v1.0.6
func SubNiceCfProxyIpTop20(format string, distNodeCountry string, isConvertIp bool, isIPV6 bool) (s string, err error)
SubNiceCfProxyIpTop20 获取 https://vps789.com/openApi/cfIpTop20
func SubNiceCfProxySub ¶ added in v1.0.9
func SubNiceCfProxySub(format string, sub string, distNodeCountry string, isIPV6 bool) (s string, err error)
SubNiceCfProxySub 从 cf sub 订阅连接替换为自己的 IP
func SubNiceProxyIp ¶ added in v0.10.1
func Unique ¶ added in v1.1.6
func Unique[T comparable](s []T) []T
Types ¶
type CfIpProvider ¶ added in v1.0.7
type CfIpTop20 ¶ added in v1.0.6
type CfIpTop20 struct {
Code int `json:"code"`
Message string `json:"message"`
Count int `json:"count"`
Data struct {
Good []struct {
Id int `json:"id"`
VpsId int `json:"vpsId"`
Ip string `json:"ip"`
AvgLatency int `json:"avgLatency"`
AvgPkgLostRate float64 `json:"avgPkgLostRate"`
YdLatency int `json:"ydLatency"`
YdPkgLostRate int `json:"ydPkgLostRate"`
LtLatency int `json:"ltLatency"`
LtPkgLostRate int `json:"ltPkgLostRate"`
DxLatency int `json:"dxLatency"`
DxPkgLostRate int `json:"dxPkgLostRate"`
Label string `json:"label"`
CreatedTime string `json:"createdTime"`
AvgScore int `json:"avgScore"`
YdScore int `json:"ydScore"`
DxScore int `json:"dxScore"`
LtScore int `json:"ltScore"`
HostProvider string `json:"hostProvider,omitempty"`
LocationCountry string `json:"locationCountry,omitempty"`
LocationCity string `json:"locationCity,omitempty"`
} `json:"good"`
} `json:"data"`
}
vps789 openapi
Click to show internal directories.
Click to hide internal directories.