Documentation ¶ Index ¶ type Parser func New(p *Parser) Parser func (p *Parser) Parse(expr []string) (Schedule, error) func (p *Parser) SetCurrentTime(t time.Time) *Parser type Schedule Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Parser ¶ type Parser struct { Timezone string SetTime time.Time // contains filtered or unexported fields } func New ¶ func New(p *Parser) Parser New to create a new instance func (*Parser) Parse ¶ func (p *Parser) Parse(expr []string) (Schedule, error) Parse to parsing cron format func (*Parser) SetCurrentTime ¶ func (p *Parser) SetCurrentTime(t time.Time) *Parser type Schedule ¶ type Schedule struct { // Next returns the next activation time, later than the given time. // Next is invoked initially, and then each time the job is run. Next time.Time } Schedule describes a job's duty cycle. Source Files ¶ View all Source files parser.go utils.go validate.go Click to show internal directories. Click to hide internal directories.