grpclb: filter out grpclb addresses if balancer in use is not grpclb (#2509)

This commit is contained in:
Menghan Li
2018-12-13 10:54:42 -08:00
committed by GitHub
parent ebf41aabc9
commit 191cc8e37b
6 changed files with 93 additions and 21 deletions

View File

@ -29,6 +29,8 @@ var (
WithResolverBuilder interface{} // func (resolver.Builder) grpc.DialOption
// HealthCheckFunc is used to provide client-side LB channel health checking
HealthCheckFunc func(ctx context.Context, newStream func() (interface{}, error), reportHealth func(bool), serviceName string) error
// BalancerUnregister is exported by package balancer to unregister a balancer.
BalancerUnregister func(name string)
)
const (