runtraversal

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ErrFirstBlockLoad = errorString("Unable to load first block")

ErrFirstBlockLoad indicates the traversal was unable to load the very first block in the traversal

Variables

This section is empty.

Functions

func RunTraversal

func RunTraversal(
	loader ipld.BlockReadOpener,
	traverser ipldutil.Traverser,
	sendResponse ResponseSender) error

RunTraversal wraps a given loader with an interceptor that sends loaded blocks out to the network with the given response sender.

Types

type ResponseSender

type ResponseSender func(
	link ipld.Link,
	data []byte,
) error

ResponseSender sends responses over the network

Jump to

Keyboard shortcuts

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