scheduler

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthcheck

func Healthcheck(ctx context.Context) error

Healtcheck for (global) scheduler

func NewService

func NewService(log *zap.Logger, d dispatcher, interval time.Duration) *service

func OnInterval

func OnInterval(ii ...string) bool

OnInterval parses all given strings as crontab expressions (ii) and returns true if any of them matches current time

func OnTimestamp

func OnTimestamp(tt ...string) bool

OnTimestamp parses all given strings as RFC3339 timestamps and returns true if any of them matches current time

func Service

func Service() *service

func Setup

func Setup(log *zap.Logger, d dispatcher, interval time.Duration)

Setup configures global scheduling service

Types

This section is empty.

Jump to

Keyboard shortcuts

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