 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func ArrComp(a, b []byte) error
- func GetDAGServ() mdag.DAGService
- func GetEmptyNode(t testing.TB, dserv mdag.DAGService, opts NodeOpts) node.Node
- func GetNode(t testing.TB, dserv mdag.DAGService, data []byte, opts NodeOpts) node.Node
- func GetRandomNode(t testing.TB, dserv mdag.DAGService, size int64, opts NodeOpts) ([]byte, node.Node)
- func PrintDag(nd *mdag.ProtoNode, ds mdag.DAGService, indent int)
- func SizeSplitterGen(size int64) chunk.SplitterGen
- type NodeOpts
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var UseCidV1 = NodeOpts{Prefix: mdag.V1CidPrefix(), RawLeavesUsed: true}
    
      View Source
      
  
    var UseProtoBufLeaves = NodeOpts{Prefix: mdag.V0CidPrefix()}
    
      View Source
      
  
var UseRawLeaves = NodeOpts{Prefix: mdag.V0CidPrefix(), ForceRawLeaves: true, RawLeavesUsed: true}
    Functions ¶
func GetDAGServ ¶
func GetDAGServ() mdag.DAGService
func GetEmptyNode ¶
func GetRandomNode ¶
func SizeSplitterGen ¶
func SizeSplitterGen(size int64) chunk.SplitterGen
Types ¶
type NodeOpts ¶ added in v0.4.12
type NodeOpts struct {
	Prefix cid.Prefix
	// ForceRawLeaves if true will force the use of raw leaves
	ForceRawLeaves bool
	// RawLeavesUsed is true if raw leaves or either implicitly or explicitly enabled
	RawLeavesUsed bool
}
    NodeOpts is used by GetNode, GetEmptyNode and GetRandomNode
var UseBlake2b256 NodeOpts
     Click to show internal directories. 
   Click to hide internal directories.