crontab

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCron

func AddCron(name string, spec string, f DoFunc)

AddCron 添加定时任务

func Start

func Start()

Start start task

func StartAndWait

func StartAndWait()

StartAndWait start and wait all task done

func Stop

func Stop()

Stop stop task

func Wait

func Wait()

Wait wait all task done

Types

type CronInfo

type CronInfo struct {
	Second uint64
	Minute uint64
	Hour   uint64
	Day    uint64
	Month  uint64
	Week   uint64
}

CronInfo

type DoFunc

type DoFunc func(*context.Context)

DoFunc

Jump to

Keyboard shortcuts

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