scheduler

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheduler

func NewScheduler() *task

新建任务

Types

type QyTask

type QyTask struct {
	// 任务名称
	Name string
	// 需要执行的任务
	Run func()
	// 任务执行的周期配置:如,每天凌晨1点执行一次:0 0 1 * * ?
	Spec string
}

Jump to

Keyboard shortcuts

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