38 lines
519 B
Protocol Buffer
Raw Normal View History

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) {}
rpc PingPong(stream Ping) returns (stream Pong) {}
2015-12-02 22:44:01 +00: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
}
message StreamingRequest {
int64 count = 1;
}
message StreamingResponse {
int64 count = 1;
}
message Ping {
int64 stroke = 1;
}
message Pong {
int64 stroke = 1;
}