Lines Matching refs:balancer
32 func newPickfirstBuilder() balancer.Builder {
38 func (*pickfirstBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer…
47 cc balancer.ClientConn
48 sc balancer.SubConn
57 b.sc, err = b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{})
70 func (b *pickfirstBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) {
85 b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrNoSubConnAvailable})
87 b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrTransientFailure})
96 sc balancer.SubConn
99 func (p *picker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balan…
107 balancer.Register(newPickfirstBuilder())