net

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(c *http.Client, url, method string, body io.Reader, header http.Header, reader bool) ([]byte, io.Reader, error)

func GetProxies added in v1.0.6

func GetProxies(testlink string, timeout int, socks5 bool) (list []string, err error)

func ProxyHttpClient

func ProxyHttpClient(prx string, timeout int) (c *http.Client, err error)

func ProxySOCKS5Client

func ProxySOCKS5Client(prx, login, pass string, timeout int) (c *http.Client, err error)

Types

type Proxies added in v1.0.7

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

func (*Proxies) DoWithProxy added in v1.0.7

func (pr *Proxies) DoWithProxy(wg *sync.WaitGroup, cb func(*sync.WaitGroup, *Proxy), testprx string, timeout int, socks5 bool) (err error)

type Proxy added in v1.0.7

type Proxy struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func (*Proxy) Done added in v1.0.7

func (p *Proxy) Done(err bool)

Jump to

Keyboard shortcuts

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