golug_cron

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT 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 interface{}) 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