cron

package
v0.0.0-...-0025a43 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is cron providers.

Functions

This section is empty.

Types

type Cron

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

func NewCron

func NewCron(data *data.Data, logger *zap.Logger, exampleJob *ExampleJob) *Cron

NewCron .

func (*Cron) Run

func (c *Cron) Run() error

func (*Cron) Stop

func (c *Cron) Stop(ctx context.Context) error

type ExampleJob

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

func NewExampleJob

func NewExampleJob(logger *zap.Logger) *ExampleJob

func (*ExampleJob) Hello

func (j *ExampleJob) Hello()

Jump to

Keyboard shortcuts

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