local_proxy_pool

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewLocalPool

func NewLocalPool(proxies []*Proxy) *Pool

func (*Pool) Delete

func (p *Pool) Delete(proxy string) bool

func (*Pool) Get

func (p *Pool) Get(prefer proxy_pool.Prefer) (proxy_pool.IProxy, error)

func (*Pool) Stop

func (p *Pool) Stop() error

type Proxy

type Proxy struct {
	Proxy string
	Type  proxy_pool.Prefer
}

func (*Proxy) Prefer

func (p *Proxy) Prefer() proxy_pool.Prefer

func (*Proxy) ProxyString

func (p *Proxy) ProxyString() string

Jump to

Keyboard shortcuts

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