cron

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: CC0-1.0 Imports: 9 Imported by: 0

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) 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 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