cron

package
v4.68.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

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

func New

func New() *Cron

func (*Cron) At

func (c *Cron) At(hour string) *Cron

func (*Cron) Days

func (c *Cron) Days() *Cron

func (*Cron) Each

func (c *Cron) Each(interval time.Duration) *Cron

func (*Cron) Exclusive added in v4.6.0

func (c *Cron) Exclusive(semaphore Semaphore, name string, timeout time.Duration) *Cron

func (*Cron) Friday

func (c *Cron) Friday() *Cron

func (*Cron) In

func (c *Cron) In(tz string) *Cron

func (*Cron) MaxRetry

func (c *Cron) MaxRetry(maxRetry uint) *Cron

func (*Cron) Monday

func (c *Cron) Monday() *Cron

func (*Cron) Now

func (c *Cron) Now() *Cron

func (*Cron) OnError

func (c *Cron) OnError(onError func(error)) *Cron

func (*Cron) OnSignal

func (c *Cron) OnSignal(signal os.Signal) *Cron

func (*Cron) Retry

func (c *Cron) Retry(retryInterval time.Duration) *Cron

func (*Cron) Saturday

func (c *Cron) Saturday() *Cron

func (*Cron) Start

func (c *Cron) Start(ctx context.Context, action func(context.Context) error)

func (*Cron) String

func (c *Cron) String() string

func (*Cron) Sunday

func (c *Cron) Sunday() *Cron

func (*Cron) Thursday

func (c *Cron) Thursday() *Cron

func (*Cron) Tuesday

func (c *Cron) Tuesday() *Cron

func (*Cron) Wednesday

func (c *Cron) Wednesday() *Cron

func (*Cron) Weekdays

func (c *Cron) Weekdays() *Cron

func (*Cron) WithTracerProvider added in v4.63.3

func (c *Cron) WithTracerProvider(tracerProvider trace.TracerProvider) *Cron

type GetNow added in v4.51.2

type GetNow func() time.Time

type Semaphore added in v4.29.5

type Semaphore interface {
	Exclusive(context.Context, string, time.Duration, func(context.Context) error) (bool, error)
}

Jump to

Keyboard shortcuts

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