task

package
v0.0.0-...-bf3b111 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 5 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
	Spec string
	Func func()
}

type Task

type Task struct {
	sync.Mutex
	Jobs map[string]cron.EntryID
	// contains filtered or unexported fields
}

func GetManager

func GetManager() *Task

func (*Task) AddJob

func (t *Task) AddJob(job Job) error

func (*Task) RemoveJob

func (t *Task) RemoveJob(job string)

func (*Task) Start

func (t *Task) Start()

func (*Task) Stop

func (t *Task) Stop()

Jump to

Keyboard shortcuts

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