rrproxy

package
v0.0.0-...-efe0afb Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rrproxy provides a reverse proxy which distributes requests round-robin on a number of backend servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundRobinReverseProxy

type RoundRobinReverseProxy struct {
	httputil.ReverseProxy
	// contains filtered or unexported fields
}

A RoundRobinReverseProxy distributes HTTP requests evenly on a number of hosts.

func New

func New(hosts ...*url.URL) (*RoundRobinReverseProxy, error)

New creates an HTTP proxy, which distributes requests evenly on the given hosts.

func (*RoundRobinReverseProxy) Close

func (p *RoundRobinReverseProxy) Close()

Close stops the proxy.

Jump to

Keyboard shortcuts

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