Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBufSize = 1048576
DefaultBufSize is the buffer size for gets. for now, 1MB, which is ~4 blocks. TODO: does this need to be configurable?
Functions ¶
func DagArchive ¶
func DagArchive(ctx cxt.Context, nd *mdag.ProtoNode, name string, dag mdag.DAGService, archive bool, compression int) (io.Reader, error)
DagArchive is equivalent to `ipfs getdag $hash | maybe_tar | maybe_gzip`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.