mcron

package
v2.0.63 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	APP_NAME = "cron"
	PRIORITY = -199
)

Variables

This section is empty.

Functions

func Get

func Get() *cron.Cron

func RunAndAddFunc

func RunAndAddFunc(spec string, cmd func()) (cron.EntryID, error)

Types

type LogWrapper

type LogWrapper struct {
}

func (*LogWrapper) Error

func (l *LogWrapper) Error(err error, msg string, keysAndValues ...interface{})

Error logs an error condition.

func (*LogWrapper) Info

func (l *LogWrapper) Info(msg string, keysAndValues ...interface{})

Info logs routine messages about cron's operation.

Jump to

Keyboard shortcuts

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