mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
30 lines
519 B
Protocol Buffer
30 lines
519 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package helloworld;
|
|
|
|
option go_package = "./proto;helloworld";
|
|
|
|
service Helloworld {
|
|
rpc Call(Request) returns (Response) {}
|
|
rpc Stream(StreamRequest) returns (stream StreamResponse) {};
|
|
}
|
|
|
|
// Call returns a personalised "Hello $name" response
|
|
message Request {
|
|
string name = 1;
|
|
}
|
|
|
|
message Response {
|
|
string message = 1;
|
|
}
|
|
|
|
// Stream returns a streaming helloworld response
|
|
message StreamRequest {
|
|
string name = 1;
|
|
int64 messages = 2;
|
|
}
|
|
|
|
message StreamResponse {
|
|
string message = 1;
|
|
}
|