proxyutil

package
v0.0.0-...-90a95e1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 30 * time.Second

DefaultTimeout - Default timeout for everything.

View Source
var IPAddressURL = "https://api.ipify.org/?format=text"

IPAddressURL - URL which returns requestee IP in response.

Functions

func FreePort

func FreePort() int

FreePort - Gets random free port.

func GetIPAddress

func GetIPAddress(client *http.Client) (addr string, err error)

GetIPAddress - Gets client IP address.

func Socks5HTTPClient

func Socks5HTTPClient(network, addr string) (*http.Client, error)

Socks5HTTPClient - Socks5 proxy HTTP client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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