datasource

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: 3 Imported by: 1

Documentation

Overview

Package datasource defines the interface that each passive data collector must implement.

The implementation is responsible of handling HTTP client timeouts and errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource interface {
	// Request receives the data from the datasource.
	Request(context.Context, *http.Client, chan<- api.Domain) error
}

Datasource interface represents any source from which domains are taken.

Directories

Path Synopsis
Package whoisds implements a data collector for the `web whoisds.com`.
Package whoisds implements a data collector for the `web whoisds.com`.

Jump to

Keyboard shortcuts

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