Documentation
¶
Index ¶
- Variables
- func Check(proxies []string, timeout time.Duration, tls bool) []string
- func MapToSlice(proxyMap map[string]struct{}) []string
- func Random(proxiList *ProxyList) func() string
- func RemoveDuplicates(proxyList []string) []string
- func RoundRobin(proxiList *ProxyList) func() string
- type ProxyIterator
- type ProxyList
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalProxyList = []string{
"https://www.my-proxy.com/free-proxy-list.html",
"https://www.my-proxy.com/free-proxy-list-2.html",
"https://www.my-proxy.com/free-proxy-list-3.html",
"https://www.my-proxy.com/free-proxy-list-4.html",
"https://www.my-proxy.com/free-proxy-list-5.html",
"https://www.my-proxy.com/free-proxy-list-6.html",
"https://www.my-proxy.com/free-proxy-list-7.html",
"https://www.my-proxy.com/free-proxy-list-8.html",
"https://www.my-proxy.com/free-proxy-list-9.html",
"https://www.my-proxy.com/free-proxy-list-10.html",
"https://www.my-proxy.com/free-elite-proxy.html",
"https://spys.me/proxy.txt",
}
View Source
var ProxyRegex = regexp.MustCompile(`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}`)
Functions ¶
func MapToSlice ¶
func RemoveDuplicates ¶
func RoundRobin ¶
RoundRobin returns a new iterator that returns a proxy from the given list in a round-robin fashion.
Types ¶
type ProxyIterator ¶
type ProxyIterator func() string
func Provider ¶
func Provider(algorithm string, proxyList *ProxyList) ProxyIterator
Provider is a iterator builder that returns a new iterator using the given algorithm.
type ProxyList ¶
type ProxyList struct { Proxies []string // contains filtered or unexported fields }
func NewProxyList ¶
Click to show internal directories.
Click to hide internal directories.