//
pkg.gl
Category
github.com/top-solution/go-libs
scheduler
package
0.18.6
Repository:
https://github.com/top-solution/go-libs.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
1
Files
148 SLOC
#
Functions
NewScheduler
NewScheduler returns a new Scheduler.
#
Variables
DefaultScheduler
No description provided by the author
#
Structs
Entry
Entry consists of a frequency and the TaskFn to execute on that frequency.
Scheduler
Scheduler keeps track of any number of entries, invoking the associated TaskFn.
#
Type aliases
LastRunTimeFn
LastRunTimeFn is a func able to fetch the time of the last run.
TaskFn
TaskFn is some task you need to run every so often.