mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-06 08:02:18 +00:00
* Addressing #473 ... if I understood the ticket right, we want to pass through whatever the application provides as a topic identifier, leaving hashing (or not hashing) up to the application. * Remove TopicDescriptor and use Topic newtype everywhere * PR feedback Use From<Topic> instead of Into<String> Use impl Into<Topic> instead of Topic in public API Co-authored-by: Peat Bakke <peat@peat.org>
21 lines
371 B
Protocol Buffer
21 lines
371 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package floodsub.pb;
|
|
|
|
message RPC {
|
|
repeated SubOpts subscriptions = 1;
|
|
repeated Message publish = 2;
|
|
|
|
message SubOpts {
|
|
optional bool subscribe = 1; // subscribe or unsubcribe
|
|
optional string topic_id = 2;
|
|
}
|
|
}
|
|
|
|
message Message {
|
|
optional bytes from = 1;
|
|
optional bytes data = 2;
|
|
optional bytes seqno = 3;
|
|
repeated string topic_ids = 4;
|
|
}
|