Documentation ¶
Overview ¶
package importer implements utilities used to create ipfs DAGs from files and readers
Index ¶
- func BuildDagFromFile(fpath string, ds dag.DAGService, mp pin.ManualPinner) (*dag.Node, error)
- func BuildDagFromReader(r io.Reader, ds dag.DAGService, mp pin.ManualPinner, spl chunk.BlockSplitter) (*dag.Node, error)
- func BuildTrickleDagFromReader(r io.Reader, ds dag.DAGService, mp pin.ManualPinner, spl chunk.BlockSplitter) (*dag.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDagFromFile ¶
func BuildDagFromFile(fpath string, ds dag.DAGService, mp pin.ManualPinner) (*dag.Node, error)
Builds a DAG from the given file, writing created blocks to disk as they are created
func BuildDagFromReader ¶
func BuildDagFromReader(r io.Reader, ds dag.DAGService, mp pin.ManualPinner, spl chunk.BlockSplitter) (*dag.Node, error)
func BuildTrickleDagFromReader ¶
func BuildTrickleDagFromReader(r io.Reader, ds dag.DAGService, mp pin.ManualPinner, spl chunk.BlockSplitter) (*dag.Node, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.