newGrpcClient returns a grpc client
(addr string)
| 16 | |
| 17 | // newGrpcClient returns a grpc client |
| 18 | func newGrpcClient(addr string) (gstring.GStringServiceClient, error) { |
| 19 | conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) |
| 20 | if err != nil { |
| 21 | return nil, err |
| 22 | } |
| 23 | client := gstring.NewGStringServiceClient(conn) |
| 24 | return client, nil |
| 25 | } |
| 26 | |
| 27 | func newHashGrpcClient(addr string) (ghash.GHashServiceClient, error) { |
| 28 | conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) |
no test coverage detected