Documentation
¶
Overview ¶
Package traversal provides abstraction and implementation needed to traverse all chunks below a given root hash. It tries to parse all manifests and collections in its attempt to log all chunk addresses on the way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option configures a single traversal.
func WithRootFn ¶
func WithRootFn(fn swarm.AddressIterFunc) Option
WithRootFn sets a function called with every joiner root traversed: the reference itself and, for manifests, every manifest node and entry.
type Traverser ¶
type Traverser interface {
// Traverse iterates through each address related to the supplied one, if possible.
Traverse(context.Context, swarm.Address, swarm.AddressIterFunc, redundancy.Level, ...Option) error
}
Traverser represents service which traverse through address dependent chunks.
Click to show internal directories.
Click to hide internal directories.