leastconnections

package
v0.0.0-...-eb79b4b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleProxy

type HandleProxy interface {
	NextProxy() (next *httputil.ReverseProxy, done func())
}

func LeastConnectionsProxy

func LeastConnectionsProxy(proxies []*httputil.ReverseProxy) (HandleProxy, error)

type Handler

type Handler interface {
	Next() (next *url.URL, done func())
}

func LeastConnections

func LeastConnections(urls []*url.URL) (Handler, error)

Initialise the counter @param {[]*url.URL} an Array of url objects @returns {LeastConnections}

Jump to

Keyboard shortcuts

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