proxy

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown()

Shutdown sets the shutdown flag which triggers the proxy to stop routing new requests.

func ShuttingDown

func ShuttingDown() bool

ShuttingDown returns whether the shutdown flag has been set.

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy is a dynamic reverse proxy.

func New

func New(tr http.RoundTripper, cfg config.Proxy) *Proxy

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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