gocron

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2014 License: MIT Imports: 12 Imported by: 0

README

go-cron

Simple golang wrapper over github.com/robfig/cron and os/exec as a cron replacement

usage

go-cron "* * * * * *" /bin/bash -c "echo 1"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.0.5

func Create() (cr *cron.Cron, wgr *sync.WaitGroup)

func Http_server added in v0.0.5

func Http_server()

func Start added in v0.0.5

func Start(c *cron.Cron)

func Stop added in v0.0.5

func Stop(c *cron.Cron, wg *sync.WaitGroup)

Types

type CurrentState added in v0.0.5

type CurrentState struct {
	Running  map[string]*LastRun
	Last     *LastRun
	Schedule string
}
var Current_state CurrentState

type LastRun

type LastRun struct {
	Exit_status  int
	Stdout       string
	Stderr       string
	ExitTime     string
	Pid          int
	StartingTime string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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