Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct { /// CID of the roots of the *partial* DAGs contained in this Box. Roots []cid.Cid /// CIDs of the roots of the sub-DAGs excluded from the original DAGs /// (delimited by Roots). We don't keep track of which sub-DAG is being /// trimmed from which full DAG in Roots, so to obtain the *partial* DAGs /// one needs to walk each DAG in Roots checking if any of its links /// are contained here. External []cid.Cid }
/ Box is a way of packing together *partial* DAGs to achieve a certain size / while generating the associated CAR file containing them. It is an / alternative to actual re-chunking the DAG nodes which can be expensive for / very large DAGs. A *partial* DAG is generated by excluding certain sub-DAGs / from it.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(dserv ipld.DAGService, chunksize uint64, minSubgraphSize uint64) *Builder
Click to show internal directories.
Click to hide internal directories.