Versions in this module Expand all Collapse all v2 v2.0.0 Jan 30, 2021 Changes in this version + type FakeTransport struct + func (ft *FakeTransport) RoundTrip(req *http.Request) (*http.Response, error) + type Manager struct + FuncTest func(*http.Client) bool + IP net.IP + MtxGood sync.Mutex + MtxTest sync.Mutex + ProxiesBanned map[string]bool + ProxiesGood map[string][]time.Time + ProxiesGoodStrikes map[string]int + ProxiesTest chan string + ProxiesTested map[string]int + Requests int + StrikeLimit int + TimeWindow time.Duration + TimeoutGood time.Duration + TimeoutTest time.Duration + URLTest string + Wait time.Duration + func NewDefaultManager() *Manager + func (m *Manager) AddProxies(proxies ...string) + func (m *Manager) ForgiveProxy(proxy string) + func (m *Manager) GetGoodProxy() (string, *http.Client) + func (m *Manager) PunishProxy(proxy string) + func (m *Manager) WithAutoProxyTester(concurrentTest int) *Manager + func (m *Manager) WithAutoRefresh(every time.Duration) *Manager + func (m *Manager) WithFuncTest(fn func(*http.Client) bool) *Manager Other modules containing this package github.com/chneau/proxy