Documentation ¶
Index ¶
- Constants
- Variables
- func GetAnyAliveProxy(timeoutInSec int, proxies ...string) (string, error)
- func GetAnyAliveProxyFunc(timeoutInSec int, proxyURLs ...string) (func(*http.Request) (*url.URL, error), error)
- func GetProxyFunc(proxyURL string) (func(*http.Request) (*url.URL, error), error)
- func GetProxyURL(proxyAddr string) (url.URL, error)
Constants ¶
View Source
const ( SOCKS5 = "socks5" HTTP = "http" HTTPS = "https" )
Variables ¶
View Source
var ProxyProbeConcurrency = 8
Functions ¶
func GetAnyAliveProxy ¶
GetAnyAliveProxy returns a proxy from the list of proxies that is alive
func GetAnyAliveProxyFunc ¶
func GetAnyAliveProxyFunc(timeoutInSec int, proxyURLs ...string) (func(*http.Request) (*url.URL, error), error)
GetAnyAliveProxyFunc returns a proxy func from the given proxy url
func GetProxyFunc ¶
GetProxyFunc returns a proxy func from the given proxy url
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.