pump

package
v0.0.0-...-6c8a6c4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(srcPath string)

Start scheduler.

func Stop

func Stop()

Stop scheduler.

Types

type Config

type Config struct {
	Version string            `yaml:"version"`
	Sources map[string]Source `yaml:"sources"`
}

Config is a structure for serialisation of a yaml file with definition of configurations all data sources.

type Source

type Source struct {
	Rule string `yaml:"rule"`

	// If you create a new provider you should describe his mapping here.
	StaticSrc provider.Static `yaml:"static"`
	HttpSrc   provider.Http   `yaml:"http"`
	FileSrc   provider.File   `yaml:"file"`
}

Source define available fields for description a source.

type StorageCronID

type StorageCronID map[string]cron.EntryID

StorageCronID is a structure of storage for all cron job ID of ran jobs.

Jump to

Keyboard shortcuts

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