cron

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisKeyDisabled = redisHeader + ":cron:disabledjobs"
View Source
var RedisKeyEnabled = redisHeader + ":cron:jobs"

Functions

This section is empty.

Types

type CronType

type CronType struct {
	Name string

	// cron time
	Minute     string
	Hour       string
	DayOfMonth string
	Month      string
	DayOfWeek  string

	// command
	Queue   string
	Command string
	Locks   []string

	// user-settable job options
	config.JobOptions

	// internal
	Disabled bool
	Raw      string
}

func Get added in v1.2.0

func Get(name string) (cron *CronType, err error)

func ParseCronLine

func ParseCronLine(name, line string) (*CronType, error)

func (*CronType) Delete added in v1.2.0

func (cron *CronType) Delete() (err error)

func (*CronType) Disable added in v1.2.0

func (cron *CronType) Disable() (err error)

func (*CronType) Enable added in v1.2.0

func (cron *CronType) Enable() (err error)

func (*CronType) MatchTime

func (cron *CronType) MatchTime(t time.Time) bool

func (*CronType) Run added in v1.2.0

func (cron *CronType) Run() (err error)

func (*CronType) Task

func (cron *CronType) Task() (task *tasklib.Task)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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