nettools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth added in v0.0.9

func BasicAuth(username, password string) map[string]string

BasicAuth encodes BasicAuth header

func Hostname

func Hostname(ip net.IP) (hostname string)

Hostname returns hostname

func IP

func IP(r *http.Request) (net.IP, error)

IP returns IP address from requester

func Inet6Aton added in v0.0.9

func Inet6Aton(ip net.IP) string

Inet6Aton Encodes ip address to hex

func Inet6AtonDecode added in v0.0.9

func Inet6AtonDecode(ipHex string) (ip net.IP)

Inet6AtonDecode decodes ip address from hex

func Proxy added in v0.1.11

func Proxy(network, address string, auth *proxy.Auth) (client *http.Client, err error)

Proxy connect to proxy server using SOCKS5

Types

This section is empty.

Jump to

Keyboard shortcuts

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