cron

package
v2.54.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: CC0-1.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(configOptions ...Options) *Engine

func (*Engine) RegisterScheduler

func (eg *Engine) RegisterScheduler(pattern string, handler HandlerFunc)

func (*Engine) RemoveScheduler added in v2.38.0

func (eg *Engine) RemoveScheduler(pattern string)

func (*Engine) Start

func (eg *Engine) Start()

func (*Engine) Stop

func (eg *Engine) Stop()

func (*Engine) Wrap added in v2.8.6

func (eg *Engine) Wrap(wrapper Wrapper)

type Engines added in v2.38.0

type Engines interface {
	RegisterScheduler(pattern string, handler HandlerFunc)
	RemoveScheduler(pattern string)
	Start()
	Stop()
	Wrap(wrapper Wrapper)
}

type HandlerFunc added in v2.8.3

type HandlerFunc func(ctx context.Context) *Response

type Options

type Options func(*option)

func WithTimeZone

func WithTimeZone(timeZone string) Options

type Response added in v2.8.4

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

func NewResponse added in v2.8.4

func NewResponse() *Response

func (*Response) SetError added in v2.8.4

func (r *Response) SetError(err error) *Response

func (*Response) SetProcessName added in v2.8.4

func (r *Response) SetProcessName(name string) *Response

type Wrapper added in v2.8.6

type Wrapper interface {
	WrapToContext(ctx context.Context) context.Context
}

Jump to

Keyboard shortcuts

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