fetch

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader added in v0.1.1

type Downloader interface {
	// Download all sources in Lists.
	Download(*sources.Lists) (*set.Set, error)
}

A Downloader is used to download a set of source lists.

func NewDownloader added in v0.1.1

func NewDownloader(pLog log.P) Downloader

NewDownloader creates a new Downloader for downloading source lists.

type Getter added in v0.1.1

type Getter interface {
	// Get source and extract its domains into a Set.
	Get(source string) (*set.Set, error)
}

A Getter is used to download a single source list.

func NewGetter added in v0.1.1

func NewGetter(pLog log.P, ex extract.Extractor) Getter

NewGetter creates a new Getter, using Extractor ex to extract domains.

Jump to

Keyboard shortcuts

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