cron

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTasks

func ListTasks() []*cron.Entry

ListTasks returns all running cron tasks.

func NewContext

func NewContext()

NewContext begins cron tasks Each cron task is run within the shutdown context as a running server AtShutdown the cron server is stopped

Types

type Func added in v1.10.0

type Func func()

Func defines a cron function body

func WithUnique added in v1.10.0

func WithUnique(name string, body func(context.Context)) Func

WithUnique wrap a cron func with an unique running check

Jump to

Keyboard shortcuts

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