mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-22 10:56:26 +00:00
31 lines
607 B
Protocol Buffer
31 lines
607 B
Protocol Buffer
|
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) {}
|
||
|
|
||
|
}
|
||
|
|