proxy

package
v0.0.0-...-b4ffed5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Anonymous = iota
	Elite
	NotAnonymous
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Addr    string
	Port    string
	Country string
	Type    string
	Range   int
}

func CheckProxies

func CheckProxies(proxies []*Proxy, anonFlag bool) []*Proxy

func NewProxy

func NewProxy(addr, port, country, t string, r int) *Proxy

func (*Proxy) GetFullAddr

func (p *Proxy) GetFullAddr() string

func (*Proxy) String

func (p *Proxy) String() string

type ProxyCheckError

type ProxyCheckError struct {
	ResponseErr string // proxy is dead
	IpCheckErr  string // ident.me is dead
	RangeErr    string // proxy is not anonymous
	ClientErr   string // error of parsing proxy address
}

func (ProxyCheckError) Error

func (pe ProxyCheckError) Error() string

Jump to

Keyboard shortcuts

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