cron

package
v0.0.0-...-52be9fe Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
}

func NewCronTrigger

func NewCronTrigger(schedule string, it item.Item, opts ...CronOpts) *Cron

NewCronTrigger creates a new Unix like cron job with the given cron expression (man 5 crontab) It will change the state of the given object. By default the object state will be set to ON. The state used can be changed using the CronOpts parameter.

type CronOpts

type CronOpts struct {
	Value string
}

Jump to

Keyboard shortcuts

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