micro/examples/server/proto/example/example.proto

38 lines
519 B
Protocol Buffer
Raw Normal View History

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