healthcheck: client-side internal hook (#2378)

This commit is contained in:
lyuxuan 2018-10-15 17:57:20 -07:00 committed by GitHub
parent 1da8e51941
commit 557b6b5f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -20,11 +20,15 @@
// symbols to avoid circular dependencies.
package internal
import "golang.org/x/net/context"
var (
// WithContextDialer is exported by clientconn.go
WithContextDialer interface{} // func(context.Context, string) (net.Conn, error) grpc.DialOption
// WithResolverBuilder is exported by clientconn.go
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
)
const (