我试着用bazel运行一些grpc测试。我正在使用"google.golang.org/grpc/credentials/insecure"不安全地拨号。在运行bazel test ...时,我会得到以下错误:
no such package '@org_golang_google_grpc//credentials/insecure': BUILD filenot found in directory &
我正在使用gRPC构建一个监控系统。为此,我需要知道gRPC客户端是否崩溃,从而断开了与gRPC服务器的连接。 这就是我创建服务器的方式。time.Second, // Wait 1 second for the ping ack before assuming the connection is dead
s := grpc.NewServer(grpc.KeepaliveEnforcementPolicy(kaep), grpc.Keepalive