var backoffStrategy … var backoffFunc … func init() { … } const healthCheckMethod … // This function implements the protocol defined at: // https://github.com/grpc/grpc/blob/master/doc/health-checking.md func clientHealthCheck(ctx context.Context, newStream func(string) (any, error), setConnectivityState func(connectivity.State, error), service string) error { … }