You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We used to run something like protoc -I/usr/local/include -I. \ -I$GOPATH/src \ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=plugins=grpc:. \ --grpc-gateway_out=logtostderr=true:. \ --swagger_out=logtostderr=true:. \ example/echo_service.proto in order to update the apis.
I simply follow the readme and it would not get to service related functions too. But I am not sure it's only happen on mine or not. I noticed in the examples folder, the server related functions are still occur in pb.gw.go.
Did I miss anything?
The text was updated successfully, but these errors were encountered:
Hi, that is very strange. Is it possible that you removed the http annotations from your protofile? It definitely should still be there. Maybe you could join the #grpc-gateway channel on gophers slack (https://invite.slack.golangbridge.org/) and I can help you debug it? This is not the right medium.
I have protoc 3.11.4 and latest grpc-gateway
We used to run something like
protoc -I/usr/local/include -I. \ -I$GOPATH/src \ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=plugins=grpc:. \ --grpc-gateway_out=logtostderr=true:. \ --swagger_out=logtostderr=true:. \ example/echo_service.proto
in order to update the apis.Before, it generates Register...Server(ctx context.Context, mux *runtime.ServeMux, server {{$svc.GetName}}Server) error {} function (https://github.com/grpc-ecosystem/grpc-gateway/blob/master/protoc-gen-grpc-gateway/internal/gengateway/template.go#L564). However, now the generated pb.gw.go does not have the server related functions.
I simply follow the readme and it would not get to service related functions too. But I am not sure it's only happen on mine or not. I noticed in the examples folder, the server related functions are still occur in pb.gw.go.
Did I miss anything?
The text was updated successfully, but these errors were encountered: