knowhunger / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
0 stars 0 forks source link

JMPBCast 설계 #7

Open knowhunger opened 2 years ago

knowhunger commented 2 years ago

Message


### 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;
    }
}