Documentation
¶
Index ¶
- func NewProxyWithStats(p *proxy.Proxy) *proxy.ProxyWithStats
- type Pool
- func (p *Pool) Add(proxy *proxy.Proxy) bool
- func (p *Pool) CheckBadProxies()
- func (p *Pool) CleanOldBadProxies(maxAge time.Duration)
- func (p *Pool) FreeSize() int
- func (p *Pool) GetNext() *proxy.ProxyWithStats
- func (p *Pool) MoveToBad(proxy *proxy.Proxy)
- func (p *Pool) NeedsProxies() int
- func (p *Pool) Remove(proxy *proxy.Proxy)
- func (p *Pool) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyWithStats ¶
func NewProxyWithStats(p *proxy.Proxy) *proxy.ProxyWithStats
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) CheckBadProxies ¶
func (p *Pool) CheckBadProxies()
func (*Pool) CleanOldBadProxies ¶
func (*Pool) GetNext ¶
func (p *Pool) GetNext() *proxy.ProxyWithStats
func (*Pool) NeedsProxies ¶
Click to show internal directories.
Click to hide internal directories.