Documentation
¶
Overview ¶
Package merkledag_pb is a generated protocol buffer package.
It is generated from these files:
merkledag.proto
It has these top-level messages:
PBLink PBNode
Index ¶
- type PBLink
- func (this *PBLink) Equal(that interface{}) bool
- func (m *PBLink) GetHash() []byte
- func (m *PBLink) GetName() string
- func (m *PBLink) GetTsize() uint64
- func (this *PBLink) GoString() string
- func (m *PBLink) Marshal() (data []byte, err error)
- func (m *PBLink) MarshalTo(data []byte) (n int, err error)
- func (*PBLink) ProtoMessage()
- func (m *PBLink) Reset()
- func (m *PBLink) Size() (n int)
- func (this *PBLink) String() string
- func (m *PBLink) Unmarshal(data []byte) error
- func (this *PBLink) VerboseEqual(that interface{}) error
- type PBNode
- func (this *PBNode) Equal(that interface{}) bool
- func (m *PBNode) GetData() []byte
- func (m *PBNode) GetLinks() []*PBLink
- func (this *PBNode) GoString() string
- func (m *PBNode) Marshal() (data []byte, err error)
- func (m *PBNode) MarshalTo(data []byte) (n int, err error)
- func (*PBNode) ProtoMessage()
- func (m *PBNode) Reset()
- func (m *PBNode) Size() (n int)
- func (this *PBNode) String() string
- func (m *PBNode) Unmarshal(data []byte) error
- func (this *PBNode) VerboseEqual(that interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PBLink ¶
type PBLink struct {
// multihash of the target object
Hash []byte `protobuf:"bytes,1,opt" json:"Hash,omitempty"`
// utf string name. should be unique per object
Name *string `protobuf:"bytes,2,opt" json:"Name,omitempty"`
// cumulative size of target object
Tsize *uint64 `protobuf:"varint,3,opt" json:"Tsize,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
An IPFS MerkleDAG Link
func NewPopulatedPBLink ¶
func NewPopulatedPBLink(r randyMerkledag, easy bool) *PBLink
func (*PBLink) ProtoMessage ¶
func (*PBLink) ProtoMessage()
func (*PBLink) VerboseEqual ¶
func (this *PBLink) VerboseEqual(that interface{}) error
type PBNode ¶
type PBNode struct {
// refs to other objects
Links []*PBLink `protobuf:"bytes,2,rep" json:"Links,omitempty"`
// opaque user data
Data []byte `protobuf:"bytes,1,opt" json:"Data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
An IPFS MerkleDAG Node
func NewPopulatedPBNode ¶
func NewPopulatedPBNode(r randyMerkledag, easy bool) *PBNode
func (*PBNode) ProtoMessage ¶
func (*PBNode) ProtoMessage()
func (*PBNode) VerboseEqual ¶
func (this *PBNode) VerboseEqual(that interface{}) error
Click to show internal directories.
Click to hide internal directories.