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