taskmanager

package
v0.0.0-...-3e72c95 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskManager

type TaskManager struct {
	// contains filtered or unexported fields
}

func New

func New(logger logger.Logger) *TaskManager

func (*TaskManager) AddTask

func (tm *TaskManager) AddTask(schedule string, task func()) (cron.EntryID, error)

func (*TaskManager) ListTasks

func (tm *TaskManager) ListTasks() []cron.Entry

func (*TaskManager) RemoveTask

func (tm *TaskManager) RemoveTask(id cron.EntryID)

func (*TaskManager) RunJob

func (tm *TaskManager) RunJob(id cron.EntryID) error

func (*TaskManager) Start

func (tm *TaskManager) Start()

func (*TaskManager) Stop

func (tm *TaskManager) Stop()

Jump to

Keyboard shortcuts

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