traversal

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: BSD-3-Clause Imports: 11 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v2.8.3

type Option func(*options)

Option configures a single traversal.

func WithRootFn added in v2.8.3

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.

func New

func New(getter storage.Getter, putter storage.Putter) Traverser

New constructs for a new Traverser.

Jump to

Keyboard shortcuts

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