proxy

package
v0.0.0-...-cb82291 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FasthttpHTTPDialer

func FasthttpHTTPDialer(proxyAddr string) fasthttp.DialFunc

FasthttpHTTPDialer : Configure dialer for http proxy

func FasthttpSocksDialer

func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc

FasthttpSocksDialer : Configure dialer for socks5/socks4 proxy

Types

type CheckerConfig

type CheckerConfig struct {
	Proxies    []Proxy
	URLtoCheck string
	Contains   string
	Timeout    int
	Threads    int
	Ptype      Proxytype
}

CheckerConfig : Config for ProxyChecker

func (CheckerConfig) Check

func (c CheckerConfig) Check(ch chan<- []Proxy, jobs <-chan int)

Check : Check function

type Proxy

type Proxy struct {
	ProxyIP   string
	ProxyPort string
	ProxyType Proxytype
}

Proxy : struct for proxy

func CheckProxies

func CheckProxies(c CheckerConfig) []Proxy

CheckProxies : Check Proxy List to extract only working

func ReqSite

func ReqSite(cc CheckerConfig, Prox Proxy) Proxy

ReqSite : Check what type of proxy work if it work

type Proxytype

type Proxytype struct {
	SOCKS5 bool
	SOCKS4 bool
	HTTP   bool
}

Proxytype : Type Of Proxy

Jump to

Keyboard shortcuts

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