mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 03:17:43 +08:00
WARNING: No migration performed! That needs to come in a separate commit, perhaps amended into this one. This is the minimal rewrite, only changing the storage from JSON(+extra keys) in Datastore to IPFS objects. All of the pinning state is still loaded in memory, and written from scratch on Flush. To do more would require API changes, e.g. adding error returns. Set/Multiset is not cleanly separated into a library, yet, as it's API is expected to change radically. License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
15 lines
350 B
Protocol Buffer
15 lines
350 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package ipfs.pin;
|
|
|
|
option go_package = "pb";
|
|
|
|
message Set {
|
|
// 1 for now, library will refuse to handle entries with an unrecognized version.
|
|
optional uint32 version = 1;
|
|
// how many of the links are subtrees
|
|
optional uint32 fanout = 2;
|
|
// hash seed for subtree selection, a random number
|
|
optional fixed32 seed = 3;
|
|
}
|