Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
Errors
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
Retries int
BackoffFactor time.Duration
}
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.