jobs

package
v0.0.0-...-2b7178e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run runs all defined jobs in separate go-routine

Types

type Job

type Job interface {
	// Each job must have an unique name, and must be fit as an environment
	// variable
	Name() string

	// How long we execute this job
	Interval() time.Duration

	// How to run this job
	Run() error
}

Job is a crontab like job

Jump to

Keyboard shortcuts

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