scheduler

package
v0.0.0-...-7c6d185 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Cron global CronScheduler

Functions

func AddCronJob

func AddCronJob(cron models.NewCron) error

AddCronJob func(cron models.NewCron) error

func DelCronJob

func DelCronJob(cron models.NewCron)

DelCronJob func(cron models.NewCron)

func Execute

func Execute(src string, uuid string, command string, envs []string, args ...string) ([]byte, error)

Execute func(src string, command string, envs []string, args ...string) ([]byte, error)

func InitCron

func InitCron() error

InitCron func()

func Run

func Run(command string, envs []string, args ...string) ([]byte, string, string, error)

Run func(command string, args ...string) ([]byte, string, string, error)

func StopCronJob

func StopCronJob(cronName string)

StopCronJob func(cronName string)

func UnregisterCronJob

func UnregisterCronJob(cronName string)

UnregisterCronJob func(cronName string)

func UpdateCronJob

func UpdateCronJob(cron models.NewCron) error

UpdateCronJob func(cron models.NewCron) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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