crontab

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.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 Crontab

type Crontab struct {
	*cron.Cron
	TaskPool             map[string]*Task
	Lock                 sync.Mutex
	Register, UnRegister chan *Task
	Close                chan int
	TaskCount            int
}

func New

func New() *Crontab

func (*Crontab) Run

func (c *Crontab) Run()

type Task

type Task struct {
	Name  string
	Spec  string
	JobId cron.EntryID
	Job   cron.Job
}

Jump to

Keyboard shortcuts

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