client

package
v0.0.0-...-4526a9f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package proxy provides support for a variety of protocols to proxy network data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	User, Password string
}

Auth contains authentication parameters that specific Dialers may require.

type Dialer

type Dialer interface {
	// Dial connects to the given address via the proxy.
	DialConn(conn *net.Conn, network, addr string) (err error)
}

A Dialer is a means to establish a connection.

func SOCKS5

func SOCKS5(timeout time.Duration, auth *Auth) (Dialer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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