upstream

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

type Upstream struct {
	// contains filtered or unexported fields
}

Upstream implements the http.RoundTripper interface and is used for requests to all simple and advanced upstreams.

func New

func New(conf *config.Upstream, logger types.Logger) (*Upstream, error)

New creates a new RoundTripper from the supplied upstream config

func NewSimple

func NewSimple(url *url.URL) (*Upstream, error)

NewSimple creates a simple RoundTripper with the default configuration that proxies requests to the supplied URL

func (*Upstream) GetAddress

func (u *Upstream) GetAddress(uri string) (*types.UpstreamAddress, error)

GetAddress implements the Upstream interface

Directories

Path Synopsis
unweighted
Package unweighted contains all unweighted upstream balancing algorithm implementations.
Package unweighted contains all unweighted upstream balancing algorithm implementations.
weighted
Package weighted contains all weighted upstream balancing algorithm implementations.
Package weighted contains all weighted upstream balancing algorithm implementations.

Jump to

Keyboard shortcuts

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