cron

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(spec string, cmd func()) error

Add 添加一个定时任务

func Entries

func Entries() []cron.Entry

Entries 返回任务列表

func Init

func Init()

Init 初始化定时任务 -由框架自动完成

func Stop

func Stop()

Stop 停止定时任务运行

Types

This section is empty.

Jump to

Keyboard shortcuts

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