mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-15 16:34:44 +08:00
扩统rpc序列化与反序列化支持
This commit is contained in:
19
rpc/rpc.proto
Normal file
19
rpc/rpc.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto2";
|
||||
|
||||
|
||||
package rpc;
|
||||
|
||||
|
||||
message PBRpcRequestData{
|
||||
optional uint64 Seq = 1;
|
||||
optional string ServiceMethod = 2;
|
||||
optional bool NoReply = 3;
|
||||
optional bytes InParam = 4;
|
||||
}
|
||||
|
||||
message PBRpcResponseData{
|
||||
optional uint64 Seq = 1;
|
||||
optional string Error = 2;
|
||||
optional bytes Reply = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user