MCPcopy Index your code
hub / github.com/labstack/echo / NewRoundRobinBalancer

Function NewRoundRobinBalancer

middleware/proxy.go:199–203  ·  view source on GitHub ↗

NewRoundRobinBalancer returns a round-robin proxy balancer.

(targets []*ProxyTarget)

Source from the content-addressed store, hash-verified

197
198// NewRoundRobinBalancer returns a round-robin proxy balancer.
199func NewRoundRobinBalancer(targets []*ProxyTarget) ProxyBalancer {
200 b := roundRobinBalancer{}
201 b.targets = targets
202 return &b
203}
204
205// AddTarget adds an upstream target to the list and returns `true`.
206//

Callers 9

TestProxyFunction · 0.85
TestProxyRealIPHeaderFunction · 0.85
TestProxyRewriteFunction · 0.85
TestProxyRewriteRegexFunction · 0.85
TestProxyRetriesFunction · 0.85
TestProxyErrorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestProxyFunction · 0.68
TestProxyRealIPHeaderFunction · 0.68
TestProxyRewriteFunction · 0.68
TestProxyRewriteRegexFunction · 0.68
TestProxyRetriesFunction · 0.68
TestProxyErrorHandlerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…