components

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package components provides the key components of data retrieval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobBuilder

type JobBuilder interface {
	// BuildJob builds retrieval jobs.
	BuildJob(jobConfig config.JobConfig) (JobRunner, error)
}

JobBuilder builds jobs.

type JobRunner

type JobRunner interface {
	// Name returns a job name.
	Name() string

	// Reload reloads job configuration.
	Reload(cfg map[string]interface{}) error

	// Run starts a job.
	Run(ctx context.Context) error
}

JobRunner performs a job.

Jump to

Keyboard shortcuts

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