upstream

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 27 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 {
	config.Config
	URLPrefix    urlprefix.Prefix
	Routes       []routeEntry
	RoundTripper *badgateway.RoundTripper
}

func NewUpstream

func NewUpstream(cfg config.Config) *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