rexCrontab

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT 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 {
	TaskId string // note: 最好用uuid
	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