importer

package
v0.0.0-...-2ec1701 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockSizeLimit = int64(1048576) // 1 MB

BlockSizeLimit specifies the maximum size an imported block can have.

View Source
var ErrSizeLimitExceeded = fmt.Errorf("object size limit exceeded")

ErrSizeLimitExceeded signals that a block is larger than BlockSizeLimit.

Functions

func NewDagFromFile

func NewDagFromFile(fpath string) (*dag.Node, error)

NewDagFromFile constructs a Merkle DAG from the file at given path.

func NewDagFromReader

func NewDagFromReader(r io.Reader, size int64) (*dag.Node, error)

NewDagFromReader constructs a Merkle DAG from the given io.Reader. size required for block construction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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