2015-05-09 00:42:07 +01:00
|
|
|
syntax = "proto3";
|
2015-01-13 23:31:27 +00:00
|
|
|
|
2015-12-02 22:44:01 +00:00
|
|
|
package go.micro.srv.example;
|
|
|
|
|
|
|
|
service Example {
|
|
|
|
rpc Call(Request) returns (Response) {}
|
|
|
|
rpc Stream(StreamingRequest) returns (stream StreamingResponse) {}
|
2015-12-18 20:28:50 +00:00
|
|
|
rpc PingPong(stream Ping) returns (stream Pong) {}
|
2015-12-02 22:44:01 +00:00
|
|
|
}
|
|
|
|
|
2015-06-12 19:52:27 +01:00
|
|
|
message Message {
|
|
|
|
string say = 1;
|
|
|
|
}
|
|
|
|
|
2015-01-13 23:31:27 +00:00
|
|
|
message Request {
|
2015-05-25 18:16:42 +01:00
|
|
|
string name = 1;
|
2015-01-13 23:31:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Response {
|
2015-05-25 18:16:42 +01:00
|
|
|
string msg = 1;
|
2015-01-13 23:31:27 +00:00
|
|
|
}
|
2015-06-01 18:55:27 +01:00
|
|
|
|
|
|
|
message StreamingRequest {
|
|
|
|
int64 count = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StreamingResponse {
|
|
|
|
int64 count = 1;
|
|
|
|
}
|
2015-12-18 20:28:50 +00:00
|
|
|
|
|
|
|
message Ping {
|
|
|
|
int64 stroke = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Pong {
|
|
|
|
int64 stroke = 1;
|
|
|
|
}
|