crontab

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCronTab

func InitCronTab(logPath string)

Types

type CronTab

type CronTab struct {
	// contains filtered or unexported fields
}
var SingletonCronTab *CronTab

func NewCronTab

func NewCronTab(opts ...cron.Option) *CronTab

func (*CronTab) AddJob

func (ct *CronTab) AddJob(spec string, cmd cron.Job) (cron.EntryID, error)

func (*CronTab) Close

func (ct *CronTab) Close()

func (*CronTab) Refresh

func (ct *CronTab) Refresh()

func (*CronTab) Running

func (ct *CronTab) Running()

func (*CronTab) Start

func (ct *CronTab) Start()

Jump to

Keyboard shortcuts

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