harvester

package
v0.0.0-...-e601235 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeWebsite = "website"
)

Harvester types.

Variables

This section is empty.

Functions

This section is empty.

Types

type Harvester

type Harvester interface {
	Harvest(context.Context, *plan.Plan) (map[string]any, error)
}

Harvester harvests data using a given plan.

func New

func New(typ string) (Harvester, error)

New returns a new Harvester.

type Website

type Website struct{}

Website is a harvester that harvests data from a website.

func (Website) Harvest

func (Website) Harvest(ctx context.Context, p *plan.Plan) (map[string]any, error)

Harvest harvests data from a website using a plan.

Jump to

Keyboard shortcuts

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