modulepackage
0.0.1
Repository: https://github.com/fishwaldo/go-taskmanager.git
Documentation: pkg.go.dev
# README
Go TaskManager
# Functions
NewCron returns a Timer that fires at according to a cron expression.All expresion supported by `https://github.com/gorhill/cronexpr` are supported.
NewFixed Returns Fixed Timer; A Timer that fires at a fixed duration intervals.
NewOnce Return a timer that trigger ONCE after `d` delay as soon as Timer is inquired for the next Run.Delay = 0 means the Timer return now(), aka as soon as time is inquired.
NewOnceTime Return a timer that trigger ONCE at `t` time.Time.If `t` is in the past at inquery time, timer will NOT run.
NewSchedule Create a new schedule for` jobFunc func()` that will run according to `timer Timer` with the supplied []Options.
NewScheduler Creates new Scheduler, opt Options are applied to *every* schedule added and created by this scheduler.
No description provided by the author
WithLogger Use the supplied Logger as the logger.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Cron A Timer that fires at according to a cron expression.All expresion supported by `https://github.com/gorhill/cronexpr` are supported.
Fixed A Timer that fires at a fixed duration intervals.
No description provided by the author
Once A timer that run ONCE after an optional specific delay.
No description provided by the author
Scheduler manage one or more Schedule creating them using common options, enforcing unique IDs, and supply methods to Start / Stop all schedule(s).
Task A Task is an object that wraps a Job (func(){}) and runs it on a schedule according to the supplied Timer; With the the ability to expose metrics, and write logs to indicate job health, state, and stats.
# Interfaces
PreExecutionMiddleWare Interface for developing new Middleware Pre Executation Middleware is run before executing a job.
Option to customize schedule behavior, check the sched.With*() functions that implement Option interface for the available options.
No description provided by the author
Timer is an Interface for a Timer object that is used by a Schedule to determine when to run the next run of a job.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author