go-unixfs: github.com/ipfs/go-unixfs/importer Index | Files | Directories

package importer

import "github.com/ipfs/go-unixfs/importer"

Package importer implements utilities used to create IPFS DAGs from files and readers.

Index

Package Files

importer.go

func BuildDagFromReader Uses

func BuildDagFromReader(ds ipld.DAGService, spl chunker.Splitter) (ipld.Node, error)

BuildDagFromReader creates a DAG given a DAGService and a Splitter implementation (Splitters are io.Readers), using a Balanced layout.

func BuildTrickleDagFromReader Uses

func BuildTrickleDagFromReader(ds ipld.DAGService, spl chunker.Splitter) (ipld.Node, error)

BuildTrickleDagFromReader creates a DAG given a DAGService and a Splitter implementation (Splitters are io.Readers), using a Trickle Layout.

Directories

PathSynopsis
balancedPackage balanced provides methods to build balanced DAGs, which are generalistic DAGs in which all leaves (nodes representing chunks of data) are at the same distance from the root.
helpers
tricklePackage trickle allows to build trickle DAGs.

Package importer imports 5 packages (graph) and is imported by 12 packages. Updated 2019-06-26. Refresh now. Tools for package owners.