MCPcopy
hub / github.com/gogf/gf / WithRoundRobin

Method WithRoundRobin

contrib/rpc/grpcx/internal/balancer/balancer.go:62–64  ·  view source on GitHub ↗

WithRoundRobin returns a grpc.DialOption which enables round-robin load balancing.

()

Source from the content-addressed store, hash-verified

60
61// WithRoundRobin returns a grpc.DialOption which enables round-robin load balancing.
62func (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.
67func (b Balancer) WithLeastConnection() grpc.DialOption {

Callers

nothing calls this directly

Calls 2

WithNameMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected