mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
40 lines
550 B
Protocol Buffer
40 lines
550 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package idiomatic;
|
|
|
|
option go_package = "proto;idiomatic";
|
|
|
|
service Idiomatic {
|
|
rpc Call(Request) returns (Response) {}
|
|
rpc Stream(StreamingRequest) returns (stream StreamingResponse) {}
|
|
rpc PingPong(stream Ping) returns (stream Pong) {}
|
|
}
|
|
|
|
message Message {
|
|
string say = 1;
|
|
}
|
|
|
|
message Request {
|
|
string name = 1;
|
|
}
|
|
|
|
message Response {
|
|
string msg = 1;
|
|
}
|
|
|
|
message StreamingRequest {
|
|
int64 count = 1;
|
|
}
|
|
|
|
message StreamingResponse {
|
|
int64 count = 1;
|
|
}
|
|
|
|
message Ping {
|
|
int64 stroke = 1;
|
|
}
|
|
|
|
message Pong {
|
|
int64 stroke = 1;
|
|
}
|