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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNil = errors.New("<nil>")

Functions

func Delete

func Delete(proxy string) bool

func Init

func Init(proxy IProxyPool)

func Stop

func Stop() error

Types

type IProxy

type IProxy interface {
	ProxyString() string
}

func Get

func Get(prefer Prefer) (IProxy, error)

type IProxyPool

type IProxyPool interface {
	Get(Prefer) (IProxy, error)
	Delete(string) bool
	Stop() error
}

type Prefer

type Prefer int64
const (
	PreferAny Prefer = 1 << iota
	PreferMainland
	PreferOversea
	PreferNone
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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