cron

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ntfy

func Ntfy(j Job, k, s string)

func Register

func Register(cron Job)

func Run

func Run()

Types

type Config

type Config struct {
	Disable bool   `json:"disable" yaml:"disable"`
	Spec    string `json:"spec"    yaml:"spec"`
	Startup bool   `json:"startup" yaml:"startup"`
	Jitter  int    `json:"jitter"  yaml:"jitter"`
}

type Job

type Job interface {
	Name() string
	Do()
}

Jump to

Keyboard shortcuts

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