importer

package
v0.4.14-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 8 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 BuildDagFromFile

func BuildDagFromFile(fpath string, ds ipld.DAGService) (ipld.Node, error)

BuildDagFromFile builds a DAG from the given file, writing created blocks to disk as they are created.

func BuildDagFromReader

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

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.

Types

This section is empty.

Directories

Path Synopsis
Package balanced provides methods to build balanced DAGs.
Package balanced provides methods to build balanced DAGs.
Package trickle allows to build trickle DAGs.
Package trickle allows to build trickle DAGs.

Jump to

Keyboard shortcuts

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