Lines Matching refs:Balancer
36 // Deprecated: please use package balancer.
45 // BalancerConfig specifies the configurations for Balancer.
47 // Deprecated: please use package balancer.
49 // DialCreds is the transport credential the Balancer implementation can
50 // use to dial to a remote load balancer server. The Balancer implementations
53 // Dialer is the custom dialer the Balancer implementation can use to dial
54 // to a remote load balancer server. The Balancer implementations
55 // can ignore this if it doesn't need to talk to remote balancer.
61 // Deprecated: please use package balancer.
68 // Balancer chooses network addresses for RPCs.
70 // Deprecated: please use package balancer.
71 type Balancer interface {
72 // Start does the initialization work to bootstrap a Balancer. For example,
76 // Up informs the Balancer that gRPC has a connection to the server at
94 // Therefore, the following is the recommended rule when writing a custom Balancer.
102 // put can collect and report RPC stats to a remote load balancer.
104 // This function should only return the errors Balancer cannot recover by itself.
109 // load balancer. gRPC internals will compare it with the existing connected
110 // addresses. If the address Balancer notified is not in the existing connected
117 // Close shuts down the balancer.
122 // call of Balancer.
141 // RoundRobin returns a Balancer that selects addresses round-robin. It uses r to watch
144 // Deprecated: please use package balancer/roundrobin.
145 func RoundRobin(r naming.Resolver) Balancer {
162 done bool // The Balancer is closed.
408 // It is a wrapper around roundRobin balancer. The logic of all methods works fine because balancer.Get()
414 func pickFirstBalancerV1(r naming.Resolver) Balancer {