upstream

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 30 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