//
pkg.gl
Category
github.com/yourselfhosted/slash
internal
cron
package
1.0.0
Repository:
https://github.com/yourselfhosted/slash.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
5
Dependents
0
Files
298 SLOC
#
Functions
New
New create a new Cron struct with default tick interval of 1 minute and timezone in UTC.
NewMoment
NewMoment creates a new Moment from the specified time.
NewSchedule
NewSchedule creates a new Schedule from a cron expression.
#
Structs
Cron
Cron is a crontab-like struct for tasks/jobs scheduling.
Moment
Moment represents a parsed single time moment.
Schedule
Schedule stores parsed information for each time component when a cron job should run.