importer

package
v0.0.0-...-d869f00 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CidListImporter

type CidListImporter struct {
	// contains filtered or unexported fields
}

CidListImporter reads from a list of CIDs.

func (CidListImporter) Read

func (i CidListImporter) Read(ctx context.Context, out chan cid.Cid, done chan error)

type Importer

type Importer interface {
	Read(ctx context.Context, out chan cid.Cid, done chan error)
}

Importer exposes an importer interface to be used for any source.

func NewCidListImporter

func NewCidListImporter(r io.Reader, miner peer.ID) Importer

func NewManifestImporter

func NewManifestImporter(r io.Reader, miner peer.ID) Importer

type ManifestImporter

type ManifestImporter struct {
	// contains filtered or unexported fields
}

MenifestImporter reads Cids from a manifest of a CID aggregator

func (ManifestImporter) Read

func (i ManifestImporter) Read(ctx context.Context, out chan cid.Cid, done chan error)

Jump to

Keyboard shortcuts

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