runtime_cron

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCron

func NewCron(configurations ...runtime.Configuration[*Cron]) runtime.Runtime

constructor

func WithCronJob

func WithCronJob[T any](
	schedule string,
	scheduler task.Scheduler[T],
	channel task.Channel[T],
) runtime.Configuration[*Cron]

func WithTaskProducer

func WithTaskProducer(taskProducer task.Producer) runtime.Configuration[*Cron]

Types

type Cron

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

implementation

func (*Cron) Start

func (c *Cron) Start() error

func (*Cron) Stop

func (c *Cron) Stop()

type Job

type Job[T any] struct {
	// contains filtered or unexported fields
}

func (*Job[T]) Run

func (j *Job[T]) Run()

Jump to

Keyboard shortcuts

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