schedulerutil

package
v0.0.0-...-d9c5553 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSchedules map[string]ScheduleType

Functions

func CheckSchedule

func CheckSchedule(duration time.Duration, reset bool, dofunc SchedFunc, propfile string) bool

func CheckScheduleDetail

func CheckScheduleDetail(report string, duration time.Duration, reset bool, dofunc SchedFunc, propfile string) bool

func DummyFunc

func DummyFunc(string)

func SetSchedulerFile

func SetSchedulerFile(name string)

Types

type SchedFunc

type SchedFunc func(string)

type ScheduleType

type ScheduleType struct {
	Report    string          `properties:"report"`
	LastTime  time.Time       `properties:"lasttime"`
	StartTime time.Time       `properties:"starttime"`
	ExecTimes []time.Duration `properties:"exectimes"`
}

Jump to

Keyboard shortcuts

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