cronx

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunc

func AddFunc(spec string, cmd func()) (cron.EntryID, error)

func Init

func Init(opts ...Opt) error

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (Config) Close

func (c Config) Close() error

type Opt

type Opt func(*Config)

func AddDaily

func AddDaily(f func()) Opt

func AddHourly

func AddHourly(f func()) Opt

func AddMinuteFunc

func AddMinuteFunc(m int, f ...func()) Opt

func AddMonthly

func AddMonthly(f func()) Opt

func AddSecondsFunc

func AddSecondsFunc(s int, f ...func()) Opt

func AddYearly

func AddYearly(f func()) Opt

Jump to

Keyboard shortcuts

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