ingestor

package
v0.0.0-...-1ed23f6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Overview

Package ingestor defines the interface that collects data from different sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct{}

Default ingestor calls all datasources (one goroutine for each source) and reports results through domains channel.

Default ingestor doesn't give priority to any source.

func (Default) Ingest

func (d Default) Ingest(ctx context.Context, out chan<- api.Domain, sources ...datasource.Datasource) error

Ingest collects domains from all datasources and reports them. It might report duplicate domains.

type Ingestor

type Ingestor interface {
	// Ingest collects domains from datasources and reports them.
	Ingest(context.Context, chan<- api.Domain, ...datasource.Datasource) error
}

Ingestor collects data from the given source.

Jump to

Keyboard shortcuts

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