config

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config contains configuration options of the data retrieval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Refresh  Refresh            `yaml:"refresh"`
	Jobs     []string           `yaml:"jobs,flow"`
	JobsSpec map[string]JobSpec `yaml:"spec"`
}

Config describes of data retrieval jobs.

type JobConfig

type JobConfig struct {
	Spec   JobSpec
	Docker *client.Client
	Marker *dbmarker.Marker
	FSPool *resources.Pool
}

JobConfig describes a job configuration.

type JobSpec

type JobSpec struct {
	Name    string                 `yaml:"name"`
	Options map[string]interface{} `yaml:"options"`
}

JobSpec contains details about a job.

type Refresh

type Refresh struct {
	Timetable string `yaml:"timetable"`
}

Refresh describes full-refresh options.

Jump to

Keyboard shortcuts

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