proxy

package
v0.0.0-...-7e4ded8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheProxy

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

func New

func New(replicas *int) *CacheProxy

func (*CacheProxy) Add

func (c *CacheProxy) Add(name string)

func (*CacheProxy) Backends

func (c *CacheProxy) Backends(req *http.Request) []string

Returns the nearest match and a set of alternates for any HTTP request.

func (*CacheProxy) Manage

func (c *CacheProxy) Manage(port *string)

func (*CacheProxy) Serve

func (c *CacheProxy) Serve(port *string, routerPort *string)

type MeteredTransport

type MeteredTransport struct {
	http.Transport
	// contains filtered or unexported fields
}

Embeds http.Transport for use along with metrics registry

func (*MeteredTransport) RoundTrip

func (t *MeteredTransport) RoundTrip(req *http.Request) (resp *http.Response, err error)

Shadows http.Transport.RoundTrip method with meter and timer updates

Jump to

Keyboard shortcuts

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