1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-28 07:22:20 +00:00
2018-08-10 07:15:11 +08:00

14 lines
242 B
Protocol Buffer

syntax = "proto3";
package helloservice;
message String {
string value = 1;
}
service PubsubService {
rpc Publish (String) returns (String);
rpc Subscribe (String) returns (stream String);
}
//protoc --go_out=plugins=grpc:. hello.proto