Questions tagged [grpc-go]

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

385 questions
3
votes
3 answers

grpcui: command not found

I am new to grpcui. I've been trying to follow the installation. I did go get github.com/fullstorydev/grpcui/... go install github.com/fullstorydev/grpcui/cmd/grpcui I also added grpcui path to my $PATH. Even tried to pull down the repo and make…
Serena Xu
  • 219
  • 5
  • 10
3
votes
0 answers

nodejs + grpc-node server much slower than REST

I have implemented 2 services A and B, where A can talk to B via both gRPC (using grpc-node with Mali) and pure HTTP REST calls. The request size is negligible. The response size is 1000 items that look like this: { "productId": "product-0", …
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
3
votes
1 answer

snake case style in protobuff generated by grpc proto3

Is it possible to change default model of proto3 from CamelCase to snake_case in grpc? example : file anyproto.proto ... message Request { bool RequestStatus = 1; string RequestMessage = 2 } ... now the protoc -I. --go_out=plugins=grpc:.…
ttrasn
  • 4,322
  • 4
  • 26
  • 43
3
votes
1 answer

Where to put a function to trigger on exit/stop/close event of flutter/dart application?

I have a simple greeter gRPC example server code written in go and exported as C library that I'm trying to run with a flutter app using go-flutter desktop engine via ffi and dart Isolates. I have made a StopGrpc() function, which works if I call it…
satinder
  • 173
  • 3
  • 16
3
votes
2 answers

Best practice for defining gRPC metadata about a stream

I have to send a stream of messages to a gRPC server, but I also have to send a significant amount of metadata about the stream. Is there a way to define the metadata message and make it part of the interface contract between the client and the…
Gronk
  • 149
  • 2
  • 9
3
votes
1 answer

Creating a gRPC client connection with the WithBlock() option to an asynchronously started gRPC server blocks indefinitely?

I'd like to write a unit test in which I run an ephemeral gRPC server which is started in a separate Goroutine within the test and stopped after the test runs. To this end, I've tried adapting the 'Hello, world' example from this tutorial…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
3
votes
2 answers

Unexpected call to mock ( gomock) gRPC

I have gRPC service (say svc1) which invokes another gRPC service, using its gRPC stub (say svc2_client). I have generated the client mock for svc2_client. Unit tests as per documentation are working fine, i.e. svc2_client is tested using the…
nukul
  • 113
  • 1
  • 4
  • 10
3
votes
1 answer

protoc generates value instead of pointer (Go)

The problem: I have 2 files in the root directory. I use Makefile to generate Go code from .proto files. But the language field in the Video struct is a value not a pointer to the value. And the subtitles field in the Video struct is an array of…
Klimbo
  • 1,308
  • 3
  • 15
  • 34
3
votes
1 answer

Is there projection/filter support for golang grpc protobuf stack?

we are using golang grpc protobuf as our server stack, I am wondering is there projection feature where I can filter certain fields in the response?
Peiti Li
  • 4,634
  • 9
  • 40
  • 57
3
votes
1 answer

golang gRPC 503 on CORS preflight using Istio grpc-web proxy

I'm trying to set up a go-based gRPC server in Kubernetes, and making requests via a grpc-web client. The client first runs a CORS preflight request, which seem to make it to the gRPC server. The server is returning a 503 on these option requests. I…
css
  • 944
  • 1
  • 9
  • 27
3
votes
1 answer

protoc-gen-go-rpc: program not found or is not executable - Where do I get protoc-gen-go-rpc?

We are using protoc-gen-go v2 (v2 is google.golang.org/protobuf, v1 is github.com/golang/protobuf) When we are trying to compile our gRPC services, it tells us that plugins is not supported anymore and we should instead use --go-grpc_out: $ protoc…
corgrath
  • 11,673
  • 15
  • 68
  • 99
3
votes
2 answers

How to close all grpc server streams using gracefulStop?

I'm trying to stop all clients connected to a stream server from server side. Actually I'm using GracefulStop method to handle it gracefully. I am waiting for os.Interrupt signal on a channel to perform a graceful stop for gRPC. but it gets stuck on…
rezamm
  • 71
  • 1
  • 2
  • 9
3
votes
1 answer

Parsing datetimestamps with timezone offset in Go using google.protobuf.Timestamp

I am creating a Go application which will use GRPC and protobuf. My RPC service shall take a message containing the type google.protobuf.Timestamp, parse it and eventually save it in a database or perform some more operations on it. I am confused…
Sevren
  • 301
  • 4
  • 10
3
votes
1 answer

How to stream result from grpc-server and how to return result from goroutines grpc server-stream to pass result to api

I have an api created via golang which return the result of { id : drone4 item_parameter : { altitude : 20, longitude : 10.20 latitude : 24.5 } as a json result, but in the code it uses go routines which call the go…
Yabetsu2018
  • 133
  • 1
  • 15
3
votes
1 answer

grpc-go over https: failed rpc error: code = Unavailable desc = transport is closing:

Note: This is running in containers in Kubernetes. I have successfully done this very short description: https://knative.dev/docs/serving/samples/grpc-ping-go/ Success: 2019/05/08 13:43:56 Ping got hello - pong 2019/05/08 13:43:56 Got pong…
Chris G.
  • 23,930
  • 48
  • 177
  • 302