checker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseProxyString

func ParseProxyString(s string, defaultProtocol string) (*url.URL, error)

func StartCheckerPool

func StartCheckerPool(proxies []string, target string, proxyType string, timeoutSec int, countOfWorker int) chan ProxyResult

func StartSyncGorutines

func StartSyncGorutines(proxies []string, target string, proxyType string, timeoutSec int) chan ProxyResult

Types

type ProxyResult

type ProxyResult struct {
	Proxy string
	Alive bool
	Delay int64
	Err   error
}

func CheckAll

func CheckAll(proxies []string, target, proxyType string, timeoutSec, threshold int) []ProxyResult

func CheckOne

func CheckOne(proxyAddr, proxyType, target string, timeoutSec int) ProxyResult

Jump to

Keyboard shortcuts

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