proxy

package
v0.0.0-...-8388630 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWrite

func CloseWrite(conn net.Conn)

func Copy

func Copy(to net.Conn, from net.Conn, complete chan bool)

Types

type Proxy

type Proxy struct {
	ErrorChannel chan error
	ListenFunc   func() (net.Listener, error)
	DialFunc     func() (net.Conn, error)

	Listener *net.Listener
}

func New

func New(listenFunc func() (net.Listener, error), dialFunc func() (net.Conn, error)) *Proxy

func (*Proxy) ForwardConnection

func (p *Proxy) ForwardConnection(clientConn net.Conn)

func (*Proxy) Start

func (p *Proxy) Start()

func (*Proxy) Stop

func (p *Proxy) Stop()

Jump to

Keyboard shortcuts

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