cron

package
v0.0.0-...-a47f05f Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PATH     string
	CronList map[string]CLStrct
	CRON     = cron.New()
	RUNJOB   = map[string]string{}
)

Functions

func HearBeatCron

func HearBeatCron(sec int64)

func Updatecron

func Updatecron()

func WatchCron

func WatchCron()

Types

type CLStrct

type CLStrct struct {
	Flag     string            `json:"flag"`
	Comment  string            `json:"comment"`
	Id       string            `json:"id"`
	Mode     string            `json:"mode"`
	App      string            `json:"app"`
	Func     string            `json:"func"`
	Param    map[string]string `json:"param"`
	Timeout  int32             `json:"timeout"`
	Proxy    string            `json:"proxy"`
	Rule     string            `json:"rule"`
	LastExec string
}

type HeartBeatMessage

type HeartBeatMessage struct {
	Data map[string]string `json:"data"`
}

Jump to

Keyboard shortcuts

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