cronjob

package
v0.0.0-...-24cbbce Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger *zerolog.Logger
}

func (Config) Error

func (c Config) Error(err error, msg string, keysAndValues ...interface{})

func (Config) Info

func (c Config) Info(msg string, keysAndValues ...interface{})

type Cronjob

type Cronjob interface {
	Start()
	Stop()
	AddJob(ctx context.Context, spec string, job func()) error
}

func New

func New(cfg Config) Cronjob

Jump to

Keyboard shortcuts

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