mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +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>
60 lines
1.4 KiB
Go
60 lines
1.4 KiB
Go
// Code generated by protoc-gen-gogo.
|
|
// source: header.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package pb is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
header.proto
|
|
|
|
It has these top-level messages:
|
|
Set
|
|
*/
|
|
package pb
|
|
|
|
import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = math.Inf
|
|
|
|
type Set struct {
|
|
// 1 for now, library will refuse to handle entries with an unrecognized version.
|
|
Version *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
|
|
// how many of the links are subtrees
|
|
Fanout *uint32 `protobuf:"varint,2,opt,name=fanout" json:"fanout,omitempty"`
|
|
// hash seed for subtree selection, a random number
|
|
Seed *uint32 `protobuf:"fixed32,3,opt,name=seed" json:"seed,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Set) Reset() { *m = Set{} }
|
|
func (m *Set) String() string { return proto.CompactTextString(m) }
|
|
func (*Set) ProtoMessage() {}
|
|
|
|
func (m *Set) GetVersion() uint32 {
|
|
if m != nil && m.Version != nil {
|
|
return *m.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Set) GetFanout() uint32 {
|
|
if m != nil && m.Fanout != nil {
|
|
return *m.Fanout
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Set) GetSeed() uint32 {
|
|
if m != nil && m.Seed != nil {
|
|
return *m.Seed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
}
|