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
syntax="proto3";
import"google/api/annotations.proto";
import"google/protobuf/empty.proto";
packagestatus;
serviceHealthCheck {
rpcGetStatus(google.protobuf.Empty) returns (Status){
option(google.api.http)= {
get: "/status"// notice that it does not have any parameters in the path
};
}
}
messageRequest{}
messageStatus {
uint32status=1;
}
The resulting status.gw.pb.go file will not compile. go build results in ./status.pb.gw.go:24: imported and not used: "google.golang.org/grpc/status"
The text was updated successfully, but these errors were encountered:
wrrn
changed the title
Output file will not compile if the proto file does not contain a service with url parameters
Output file will not compile if the .proto file does not contain a service with url parameters
May 13, 2017
wrrn
changed the title
Output file will not compile if the .proto file does not contain a service with url parameters
Output file will not compile if the .proto file does not contain a service with parameters in the url path
May 13, 2017
If there is a .proto file that look like this:
The resulting
status.gw.pb.go
file will not compile.go build
results in./status.pb.gw.go:24: imported and not used: "google.golang.org/grpc/status"
The text was updated successfully, but these errors were encountered: