格式化代码

This commit is contained in:
flswld
2023-05-22 00:39:02 +08:00
parent f851ad1692
commit 3100e8b147
115 changed files with 38550 additions and 38546 deletions

View File

@@ -1,17 +1,18 @@
syntax = "proto3";
package natsrpc;
option go_package = "github.com/byebyebruce/natsrpc;natsrpc";
import "google/protobuf/descriptor.proto";
option go_package = "github.com/byebyebruce/natsrpc;natsrpc";
extend google.protobuf.ServiceOptions {
bool serviceAsync = 43230; // service异步handler
bool clientAsync = 43231; // client异步请求
bool serviceAsync = 43230; // service异步handler
bool clientAsync = 43231; // client异步请求
}
extend google.protobuf.MethodOptions {
bool publish = 2360; // false表示request(需要返回值)true表示广播(不需要返回值)
bool publish = 2360; // false表示request(需要返回值)true表示广播(不需要返回值)
}
// Empty 空值
@@ -19,13 +20,13 @@ message Empty {}
// Request 请求
message Request {
bytes payload = 1; // 包体
map<string, string> header = 2; // 包头
bytes payload = 1; // 包体
map<string, string> header = 2; // 包头
}
// Reply 返回
message Reply {
bytes payload = 1; // 包体
string error = 2; // 错误
bytes payload = 1; // 包体
string error = 2; // 错误
}