findGroupBalancer returns the GroupBalancer with the specified protocolName from the slice provided.
(protocolName string, balancers []GroupBalancer)
| 330 | // findGroupBalancer returns the GroupBalancer with the specified protocolName |
| 331 | // from the slice provided. |
| 332 | func findGroupBalancer(protocolName string, balancers []GroupBalancer) (GroupBalancer, bool) { |
| 333 | for _, balancer := range balancers { |
| 334 | if balancer.ProtocolName() == protocolName { |
| 335 | return balancer, true |
| 336 | } |
| 337 | } |
| 338 | return nil, false |
| 339 | } |
no test coverage detected