package
0.16.1-beta
Repository: https://github.com/intelsdilabs/pulse.git
Documentation: pkg.go.dev

# Functions

NewCronSchedule creates and starts new cron schedule and returns an instance of CronSchedule.
NewSimpleSchedule returns the SimpleSchedule given the time interval.
NewWindowedSchedule returns an instance of WindowedSchedule given duration, start and stop time.

# Constants

Active - set by the scheduler once a schedule has been validated and is in use in a task.
Ended - Schedule is ended.
Error - Schedule is halted with an error.

# Variables

ErrInvalidInterval - Error message for the valid schedule interval must ne greater than 0.
ErrInvalidStopTime - Error message for the stop tome is in the past.
ErrMissingCronEntry indicates missing cron entry.
ErrStopBeforeStart - Error message for the stop time cannot occur before start time.

# Structs

CronSchedule is a schedule that waits as long as specified in cron entry.
CronScheduleResponse is the response from CronSchedule.
SimpleSchedule is a schedule that only implements an endless repeating interval.
SimpleScheduleResponse a response from SimpleSchedule conforming to ScheduleResponse interface.
WindowedSchedule is a schedule that waits on an interval within a specific time window.
WindowedScheduleResponse is the response from SimpleSchedule conforming to ScheduleResponse interface.

# Interfaces

Response interface defines the behavior of schedule response.
Schedule interface.

# Type aliases

ScheduleState int type.