cronjobs

package
v0.9.2-beta.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name             string
	Ticker           *time.Ticker
	Operation        operations.Operation
	TimeoutSeconds   int
	PeriodSeconds    int
	SuccessThreshold int
	FailureThreshold int
}

func NewJob

func NewJob(name string, settings map[string]string) (*Job, error)

func (*Job) Start

func (job *Job) Start()

type Manager

type Manager struct {
	Jobs map[string]*Job
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) Start

func (m *Manager) Start()

Jump to

Keyboard shortcuts

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