pool

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 2 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) FillFromFree added in v1.3.0

func (p *Pool) FillFromFree()

FillFromFree moves proxies from free pool to main pool if needed

func (*Pool) FreeSize

func (p *Pool) FreeSize() int

func (*Pool) MoveToBad

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

func (*Pool) NeedsProxies

func (p *Pool) NeedsProxies() int

func (*Pool) Next added in v1.3.0

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

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