Versions in this module Expand all Collapse all v1 v1.15.0 May 17, 2022 Changes in this version + const RescheduleMode + const WaitMode + var ErrAtTimeNotSupported = errors.New("the At() method is not supported for this time unit") + var ErrCronParseFailure = errors.New("cron expression failed to be parsed") + var ErrDoWithJobDetails = errors.New("DoWithJobDetails expects a function whose last parameter is a gocron.Job") + var ErrInvalidDayOfMonthEntry = errors.New("only days 1 through 28 are allowed for monthly schedules") + var ErrInvalidDaysOfMonthDuplicateValue = errors.New("duplicate days of month is not allowed in Month() and Months() methods") + var ErrInvalidInterval = errors.New(".Every() interval must be greater than 0") + var ErrInvalidIntervalType = errors.New(".Every() interval must be int, time.Duration, or string") + var ErrInvalidIntervalUnitsSelection = errors.New(...) + var ErrJobNotFoundWithTag = errors.New("no jobs found with given tag") + var ErrNotAFunction = errors.New("only functions can be scheduled into the job queue") + var ErrNotScheduledWeekday = errors.New("job not scheduled weekly on a weekday") + var ErrTagsUnique = func(tag string) error + var ErrUnsupportedTimeFormat = errors.New("the given time format is not supported") + var ErrUpdateCalledWithoutJob = errors.New("a call to Scheduler.Update() requires a call to Scheduler.Job() first") + var ErrWeekdayNotSupported = errors.New("weekday is not supported for time unit") + var ErrWrongParams = errors.New("wrong list of params") + type Job struct + func (j *Job) Error() error + func (j *Job) IsRunning() bool + func (j *Job) LastRun() time.Time + func (j *Job) LimitRunsTo(n int) + func (j *Job) NextRun() time.Time + func (j *Job) RunCount() int + func (j *Job) ScheduledAtTime() string + func (j *Job) ScheduledAtTimes() []string + func (j *Job) ScheduledTime() time.Time + func (j *Job) SingletonMode() + func (j *Job) Tag(tags ...string) + func (j *Job) Tags() []string + func (j *Job) Untag(t string) + func (j *Job) Weekday() (time.Weekday, error) + func (j *Job) Weekdays() []time.Weekday + type Scheduler struct + func NewScheduler(loc *time.Location) *Scheduler + func (s *Scheduler) At(i interface{}) *Scheduler + func (s *Scheduler) ChangeLocation(newLocation *time.Location) + func (s *Scheduler) Clear() + func (s *Scheduler) Cron(cronExpression string) *Scheduler + func (s *Scheduler) CronWithSeconds(cronExpression string) *Scheduler + func (s *Scheduler) Day() *Scheduler + func (s *Scheduler) Days() *Scheduler + func (s *Scheduler) Do(jobFun interface{}, params ...interface{}) (*Job, error) + func (s *Scheduler) DoWithJobDetails(jobFun interface{}, params ...interface{}) (*Job, error) + func (s *Scheduler) Every(interval interface{}) *Scheduler + func (s *Scheduler) FindJobsByTag(tags ...string) ([]*Job, error) + func (s *Scheduler) Friday() *Scheduler + func (s *Scheduler) Hour() *Scheduler + func (s *Scheduler) Hours() *Scheduler + func (s *Scheduler) IsRunning() bool + func (s *Scheduler) Job(j *Job) *Scheduler + func (s *Scheduler) Jobs() []*Job + func (s *Scheduler) Len() int + func (s *Scheduler) Less(first, second int) bool + func (s *Scheduler) LimitRunsTo(i int) *Scheduler + func (s *Scheduler) Location() *time.Location + func (s *Scheduler) Midday() *Scheduler + func (s *Scheduler) Millisecond() *Scheduler + func (s *Scheduler) Milliseconds() *Scheduler + func (s *Scheduler) Minute() *Scheduler + func (s *Scheduler) Minutes() *Scheduler + func (s *Scheduler) Monday() *Scheduler + func (s *Scheduler) Month(daysOfMonth ...int) *Scheduler + func (s *Scheduler) MonthFirstWeekday(weekday time.Weekday) *Scheduler + func (s *Scheduler) MonthLastDay() *Scheduler + func (s *Scheduler) Months(daysOfTheMonth ...int) *Scheduler + func (s *Scheduler) NextRun() (*Job, time.Time) + func (s *Scheduler) Remove(job interface{}) + func (s *Scheduler) RemoveByReference(job *Job) + func (s *Scheduler) RemoveByTag(tag string) error + func (s *Scheduler) RemoveByTags(tags ...string) error + func (s *Scheduler) RemoveByTagsAny(tags ...string) error + func (s *Scheduler) RunAll() + func (s *Scheduler) RunAllWithDelay(d time.Duration) + func (s *Scheduler) RunByTag(tag string) error + func (s *Scheduler) RunByTagWithDelay(tag string, d time.Duration) error + func (s *Scheduler) Saturday() *Scheduler + func (s *Scheduler) Second() *Scheduler + func (s *Scheduler) Seconds() *Scheduler + func (s *Scheduler) SetMaxConcurrentJobs(n int, mode limitMode) + func (s *Scheduler) SingletonMode() *Scheduler + func (s *Scheduler) SingletonModeAll() + func (s *Scheduler) StartAsync() + func (s *Scheduler) StartAt(t time.Time) *Scheduler + func (s *Scheduler) StartBlocking() + func (s *Scheduler) StartImmediately() *Scheduler + func (s *Scheduler) Stop() + func (s *Scheduler) Sunday() *Scheduler + func (s *Scheduler) Swap(i, j int) + func (s *Scheduler) Tag(t ...string) *Scheduler + func (s *Scheduler) TagsUnique() + func (s *Scheduler) TaskPresent(j interface{}) bool + func (s *Scheduler) Thursday() *Scheduler + func (s *Scheduler) Tuesday() *Scheduler + func (s *Scheduler) Update() (*Job, error) + func (s *Scheduler) WaitForSchedule() *Scheduler + func (s *Scheduler) WaitForScheduleAll() + func (s *Scheduler) Wednesday() *Scheduler + func (s *Scheduler) Week() *Scheduler + func (s *Scheduler) Weekday(weekDay time.Weekday) *Scheduler + func (s *Scheduler) Weeks() *Scheduler