importer

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCids

func ReadCids(ctx context.Context, in io.Reader, out chan<- multihash.Multihash, done chan error)

ReadCids reads cids from an io.Reader and output their multihashes on a channel. Malformed cids are ignored. ReadCids is meant to be called in a separate goroutine. It exits when EOF on in io.Reader or when context caceled.

func ReadManifest

func ReadManifest(ctx context.Context, in io.Reader, out chan<- multihash.Multihash, errOut chan error)

ReadManifest reads Cids from a manifest of a CID aggregator and outputs their multihashes on a channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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