Open knowhunger opened 2 years ago
message Message { optional bytes from = 1; // generator peerID optional bytes data = 2; optional bytes seqno = 3; optional string topic = 4; optional bytes signature = 5; optional bytes key = 6; optional int64 hop = 7; optional int64 createtime = 8; }
### RPC - 하나의 RPC는 Msg들을 포함 - ```proto message RPC { repeated SubOpts subscriptions = 1; repeated Message publish = 2; optional ControlMessage control = 3; repeated JmpMsgRPC jmpRPC = 4; optional uint64 jmpMode = 5; optional bytes sender = 6; // 직전에 보낸 peerID optional int64 fanout = 7; message SubOpts { optional bool subscribe = 1; // subscribe or unsubcribe optional string topicid = 2; } }
Message