cron

package
v1.1.4-beta Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cron provides primitives to initialise and control the main cron scheduler.

Index

Constants

This section is empty.

Variables

View Source
var LastRanChannel chan string

Functions

func GetLastRan

func GetLastRan() time.Time

GetLastRan returns the last time the cronjob ran.

func GetNextRun

func GetNextRun() time.Time

GetNextRun returns the next time the cronjob would run.

func Init

func Init() error

Init initialises the cronjob with the desired frequency set by the user. If frequency is unset, cronjob is not initialised.

func Rerun

func Rerun(frequency int) error

Rerun clears the job from the scheduler and reschedules the same job with the new frequency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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