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.
Click to show internal directories.
Click to hide internal directories.