jobs

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterOrEqualTo

func AfterOrEqualTo(t1, t2 time.Time) bool

func Announce

func Announce(j Job, inAction string)

func BeforeOrEqualTo

func BeforeOrEqualTo(t1, t2 time.Time) bool

func GetHumanReadableCronFreq

func GetHumanReadableCronFreq(freq string) string

func NextRun

func NextRun(j Job) string

func StartOfDay

func StartOfDay(t time.Time) time.Time

Types

type Job

type Job interface {
	Run() error
	Service() func()
	Schedule() string
	Name() string
}

Jump to

Keyboard shortcuts

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