tikdog_cron

package
v0.0.0-...-040cd8a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyEntry = cron.Entry{}

Functions

func Add

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

func Get

func Get(name string) cron.Entry

func List

func List() map[string]cron.Entry

func New

func New(opts ...cron.Option) *cronManager

func Remove

func Remove(name string) error

func SetDefault

func SetDefault(c *cronManager)

func Start

func Start() error

func Stop

func Stop() error

Types

type CallBack

type CallBack func(event Event) error

type Event

type Event struct{ context.Context }

Jump to

Keyboard shortcuts

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