cron

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScheduleTask

func ScheduleTask(task Task)

ScheduleTask sets the Task to be executed

Types

type Event

type Event struct {
	Cron          string
	ScheduledTime time.Time
}

Event represents information about the Cron that invoked this worker.

type Task

type Task func(ctx context.Context, event *Event) error

Jump to

Keyboard shortcuts

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