parsers

package
v0.0.0-...-0ff3665 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
	DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error)
	Dial(network, address string) (net.Conn, error)
}

type ProxySocks5Conf

type ProxySocks5Conf struct {
	Address   string `json:"address"`
	ProxyType string `json:"proxyType"`

	Latency          float64   `json:"latency"`
	LastCheckLatency time.Time `json:"lastCheckLatency"`

	CountryIsoCode string `json:"countryIsoCode"`
	// contains filtered or unexported fields
}

ProxySocks5Conf represent config to proxy

func GetProxiesListSpysOne

func GetProxiesListSpysOne(countryISO string) (proxylist []ProxySocks5Conf, err error)

GetProxiesListSpysOne get proxy list from http://spys.one/en/socks-proxy-list/

func (*ProxySocks5Conf) CheckLatency

func (pc *ProxySocks5Conf) CheckLatency() (float64, error)

func (*ProxySocks5Conf) GetDialer

func (pc *ProxySocks5Conf) GetDialer() (Dialer, error)

func (*ProxySocks5Conf) IsContry

func (pc *ProxySocks5Conf) IsContry() bool

IsContry check if country and latency is finded

Jump to

Keyboard shortcuts

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