Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream struct { Transport http.RoundTripper ErrorLog *log.Logger Host string // override host Path string // target prefix path }
Upstream controls request flow to upstream server via load balancer
func SingleHost ¶ added in v0.2.0
func SingleHost(host string, transport http.RoundTripper) *Upstream
SingleHost creates new single host upstream
Click to show internal directories.
Click to hide internal directories.