WithRoundRobin returns a grpc.DialOption which enables round-robin load balancing.
()
| 60 | |
| 61 | // WithRoundRobin returns a grpc.DialOption which enables round-robin load balancing. |
| 62 | func (b Balancer) WithRoundRobin() grpc.DialOption { |
| 63 | return b.WithName(RoundRobin.Name()) |
| 64 | } |
| 65 | |
| 66 | // WithLeastConnection returns a grpc.DialOption which enables the least connection load balancing. |
| 67 | func (b Balancer) WithLeastConnection() grpc.DialOption { |