mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 05:52:20 +08:00

we shouldn't use internal packages. License: MIT Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
20 lines
510 B
Protocol Buffer
20 lines
510 B
Protocol Buffer
package bitswap.message.pb;
|
|
|
|
message Message {
|
|
|
|
message Wantlist {
|
|
|
|
message Entry {
|
|
optional string block = 1; // the block key
|
|
optional int32 priority = 2; // the priority (normalized). default to 1
|
|
optional bool cancel = 3; // whether this revokes an entry
|
|
}
|
|
|
|
repeated Entry entries = 1; // a list of wantlist entries
|
|
optional bool full = 2; // whether this is the full wantlist. default to false
|
|
}
|
|
|
|
optional Wantlist wantlist = 1;
|
|
repeated bytes blocks = 2;
|
|
}
|