You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// 版本
|
|
syntax = "proto3";
|
|
|
|
// 包名
|
|
package pb;
|
|
|
|
// 别名
|
|
option go_package = "../pb";
|
|
|
|
// 定义服务
|
|
service PubSub {
|
|
// [发布] 消息
|
|
rpc Publish (String) returns (String);
|
|
// [订阅] 消息
|
|
rpc Subscribe (String) returns (stream String);
|
|
}
|
|
|
|
// 消息
|
|
message String {
|
|
string value = 1;
|
|
}
|