cron

package
v0.0.0-...-99e74f1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	*cron.Cron
	// contains filtered or unexported fields
}

func New

func New(opts ...CronOptions) *Cron

func (*Cron) Start

func (s *Cron) Start(ctx context.Context) error

func (*Cron) String

func (s *Cron) String() string

type CronOptions

type CronOptions func(c *Cron)

func WithCronHandler

func WithCronHandler(spec string, handler func(ctx context.Context) error) CronOptions

Jump to

Keyboard shortcuts

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