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

Method AddTarget

middleware/proxy.go:101–101  ·  view source on GitHub ↗
(target *ProxyTarget)

Source from the content-addressed store, hash-verified

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}

Callers 3

TestProxyFunction · 0.65
TestProxyErrorFunction · 0.65

Implementers 2

customBalancermiddleware/proxy_test.go
sequenceBalancermiddleware/proxy_test.go

Calls

no outgoing calls

Tested by 3

TestProxyFunction · 0.52
TestProxyErrorFunction · 0.52