proxy

package
v0.0.0-...-fd97e0e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, dialer Dialer)

Test tests a Dialer.

Types

type Dialer

type Dialer interface {
	// Dial: function that dials a given destination using the proxy.
	Dial(network, addr string) (net.Conn, error)

	// Close: closes the dialer and any underlying resources
	Close() error
}

Dialer is an interface for types that allowing connecting to some destination via an intervening proxy (or proxies).

Jump to

Keyboard shortcuts

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