Documentation ¶
Index ¶
- Variables
- func ArrComp(a, b []byte) error
- func GetDAGServ() ipld.DAGService
- func GetEmptyNode(t testing.TB, dserv ipld.DAGService, opts NodeOpts) ipld.Node
- func GetNode(t testing.TB, dserv ipld.DAGService, data []byte, opts NodeOpts) ipld.Node
- func GetRandomNode(t testing.TB, dserv ipld.DAGService, size int64, opts NodeOpts) ([]byte, ipld.Node)
- func PrintDag(nd *mdag.ProtoNode, ds ipld.DAGService, indent int)
- func SizeSplitterGen(size int64) chunker.SplitterGen
- type NodeOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UseProtoBufLeaves = NodeOpts{Prefix: mdag.V0CidPrefix()} UseRawLeaves = NodeOpts{Prefix: mdag.V0CidPrefix(), ForceRawLeaves: true, RawLeavesUsed: true} UseCidV1 = NodeOpts{Prefix: mdag.V1CidPrefix(), RawLeavesUsed: true} UseBlake2b256 NodeOpts )
Some shorthands for NodeOpts.
Functions ¶
func GetEmptyNode ¶
GetEmptyNode returns an empty unixfs file node.
func GetRandomNode ¶
func GetRandomNode(t testing.TB, dserv ipld.DAGService, size int64, opts NodeOpts) ([]byte, ipld.Node)
GetRandomNode returns a random unixfs file node.
func PrintDag ¶
func PrintDag(nd *mdag.ProtoNode, ds ipld.DAGService, indent int)
PrintDag pretty-prints the given dag to stdout.
func SizeSplitterGen ¶
func SizeSplitterGen(size int64) chunker.SplitterGen
SizeSplitterGen creates a generator.
Types ¶
Click to show internal directories.
Click to hide internal directories.