upstream

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBackend = helper.URLMustParse("http://localhost:8080")

Functions

func NotFoundUnless

func NotFoundUnless(pass bool, handler http.Handler) http.Handler

Types

type Upstream

type Upstream struct {
	Backend         *url.URL
	Version         string
	DocumentRoot    string
	DevelopmentMode bool

	URLPrefix    urlprefix.Prefix
	Routes       []route
	RoundTripper *badgateway.RoundTripper
}

func NewUpstream

func NewUpstream(backend *url.URL, socket string, version string, documentRoot string, developmentMode bool, proxyHeadersTimeout time.Duration) *Upstream

func (*Upstream) ServeHTTP

func (u *Upstream) ServeHTTP(ow http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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