Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct {
// utf string name. should be unique per object
Name string // utf8
// cumulative size of target object
Size uint64
// multihash of the target object
Cid *cid.Cid
}
Link represents an IPFS Merkle DAG Link between Nodes.
type Node ¶
type Node interface {
Resolve(path []string) (interface{}, []string, error)
ResolveLink(path []string) (*Link, []string, error)
Tree() []string
Cid() *cid.Cid
Links() []*Link
//
Stat() (*NodeStat, error)
Size() (uint64, error)
// RawData marshals the node and returns the marshaled bytes
RawData() []byte
String() string
Loggable() map[string]interface{}
}
type NodeStat ¶
type NodeStat struct {
Hash string
NumLinks int // number of links in link table
BlockSize int // size of the raw, encoded data
LinksSize int // size of the links segment
DataSize int // size of the data segment
CumulativeSize int // cumulative size of object and its references
}
NodeStat is a statistics object for a Node. Mostly sizes.
Click to show internal directories.
Click to hide internal directories.