gocron

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(schedule string, command string, args []string) (cr *cron.Cron, wgr *sync.WaitGroup)

func Http_server

func Http_server(port string)

func Start

func Start(c *cron.Cron)

func Stop

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

Types

type CurrentState

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
}

Jump to

Keyboard shortcuts

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