MCPcopy
hub / github.com/labstack/echo / ProxyBalancer

Interface ProxyBalancer

middleware/proxy.go:100–104  ·  view source on GitHub ↗

ProxyBalancer defines an interface to implement a load balancing technique.

Source from the content-addressed store, hash-verified

98
99// ProxyBalancer defines an interface to implement a load balancing technique.
100type ProxyBalancer interface {
101 AddTarget(target *ProxyTarget) bool
102 RemoveTarget(targetName string) bool
103 Next(c *echo.Context) (*ProxyTarget, error)
104}
105
106type commonBalancer struct {
107 targets []*ProxyTarget

Callers 8

TestProxyFunction · 0.65
TestProxyErrorFunction · 0.65
TestProxyFunction · 0.65
ToMiddlewareMethod · 0.65

Implementers 2

customBalancermiddleware/proxy_test.go
sequenceBalancermiddleware/proxy_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…