importer

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

package importer implements utilities used to create ipfs DAGs from files and readers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicPinnerCB added in v0.3.5

func BasicPinnerCB(p pin.ManualPinner) h.NodeCB

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, spl chunk.BlockSplitter, ncb h.NodeCB) (*dag.Node, error)

func BuildTrickleDagFromReader

func BuildTrickleDagFromReader(r io.Reader, ds dag.DAGService, spl chunk.BlockSplitter, ncb h.NodeCB) (*dag.Node, error)

func PinIndirectCB added in v0.3.5

func PinIndirectCB(p pin.ManualPinner) h.NodeCB

Types

This section is empty.

Directories

Path Synopsis
package chunk implements streaming block splitters
package chunk implements streaming block splitters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL