mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
14 lines
244 B
Protocol Buffer
14 lines
244 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package HelloService;
|
|
|
|
message String {
|
|
string value = 1;
|
|
}
|
|
|
|
service HelloService {
|
|
rpc Hello (String) returns (String);
|
|
rpc Channel (stream String) returns (stream String);
|
|
}
|
|
|
|
//protoc --go_out=plugins=grpc:. hello.proto |