tasks

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskPruner

type TaskPruner struct {
	Cron        string
	MaxAgeHours time.Duration
}

type Tasks

type Tasks struct {
	TaskPruner *TaskPruner
	// contains filtered or unexported fields
}

func New

func New() *Tasks

New instance

func (*Tasks) AddTask

func (t *Tasks) AddTask(expression string, task func()) (cron.EntryID, error)

func (*Tasks) Init

func (t *Tasks) Init() error

func (*Tasks) Start

func (t *Tasks) Start()

func (*Tasks) Stop

func (t *Tasks) Stop()

Jump to

Keyboard shortcuts

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