RPC数据传输优化

This commit is contained in:
lifeiyi
2021-01-07 14:11:38 +08:00
parent 4116b9ae12
commit f07206ca19
7 changed files with 884 additions and 377 deletions

17
rpc/gogorpc.proto Normal file
View File

@@ -0,0 +1,17 @@
syntax = "proto3";
package rpc;
option go_package = "./rpc";
message GoGoPBRpcRequestData{
uint64 Seq = 1;
uint32 RpcMethodId = 2;
string ServiceMethod = 3;
bool NoReply = 4;
bytes InParam = 5;
}
message GoGoPBRpcResponseData{
uint64 Seq = 1;
string Error = 2;
bytes Reply = 3;
}