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