mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 17:22:26 +00:00
add grpc-proxy (github.com/mwitkow/grpc-proxy)
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
30
proxy/testservice/test.proto
Normal file
30
proxy/testservice/test.proto
Normal file
@ -0,0 +1,30 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package mwitkow.testproto;
|
||||
|
||||
option go_package="go.linka.cloud/grpc-toolkit/proxy/testservice";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
message PingRequest {
|
||||
string value = 1;
|
||||
}
|
||||
|
||||
message PingResponse {
|
||||
string value = 1;
|
||||
int32 counter = 2;
|
||||
}
|
||||
|
||||
service TestService {
|
||||
rpc PingEmpty(google.protobuf.Empty) returns (PingResponse) {}
|
||||
|
||||
rpc Ping(PingRequest) returns (PingResponse) {}
|
||||
|
||||
rpc PingError(PingRequest) returns (google.protobuf.Empty) {}
|
||||
|
||||
rpc PingList(PingRequest) returns (stream PingResponse) {}
|
||||
|
||||
rpc PingStream(stream PingRequest) returns (stream PingResponse) {}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user