Versions in this module Expand all Collapse all v0 v0.900.9 Feb 27, 2024 v0.900.8 Feb 11, 2024 v0.900.7 Feb 10, 2024 v0.900.6 Feb 6, 2024 v0.20.5 Feb 1, 2024 Changes in this version + type Cron struct + func New() *Cron + func (c *Cron) Add(jobId string, cronExpr string, run func()) error + func (c *Cron) HasStarted() bool + func (c *Cron) MustAdd(jobId string, cronExpr string, run func()) + func (c *Cron) Remove(jobId string) + func (c *Cron) RemoveAll() + func (c *Cron) SetInterval(d time.Duration) + func (c *Cron) SetTimezone(l *time.Location) + func (c *Cron) Start() + func (c *Cron) Stop() + func (c *Cron) Total() int + type Moment struct + Day int + DayOfWeek int + Hour int + Minute int + Month int + func NewMoment(t time.Time) *Moment + type Schedule struct + Days map[int]struct{} + DaysOfWeek map[int]struct{} + Hours map[int]struct{} + Minutes map[int]struct{} + Months map[int]struct{} + func NewSchedule(cronExpr string) (*Schedule, error) + func (s *Schedule) IsDue(m *Moment) bool