pool

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 NewPool

func NewPool(maxSize int) *Pool

func (*Pool) Add

func (p *Pool) Add(proxy *proxy.Proxy) bool

func (*Pool) CheckBadProxies

func (p *Pool) CheckBadProxies()

func (*Pool) CleanOldBadProxies

func (p *Pool) CleanOldBadProxies(maxAge time.Duration)

func (*Pool) FreeSize

func (p *Pool) FreeSize() int

func (*Pool) GetNext

func (p *Pool) GetNext() *proxy.ProxyWithStats

func (*Pool) MoveToBad

func (p *Pool) MoveToBad(proxy *proxy.Proxy)

func (*Pool) NeedsProxies

func (p *Pool) NeedsProxies() int

func (*Pool) Remove

func (p *Pool) Remove(proxy *proxy.Proxy)

func (*Pool) Size

func (p *Pool) Size() int

Jump to

Keyboard shortcuts

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