MCPcopy
hub / github.com/robfig/cron / WithParser

Function WithParser

option.go:26–30  ·  view source on GitHub ↗

WithParser overrides the parser used for interpreting job schedules.

(p ScheduleParser)

Source from the content-addressed store, hash-verified

24
25// WithParser overrides the parser used for interpreting job schedules.
26func WithParser(p ScheduleParser) Option {
27 return func(c *Cron) {
28 c.parser = p
29 }
30}
31
32// WithChain specifies Job wrappers to apply to all jobs added to this cron.
33// Refer to the Chain* functions in this package for provided wrappers.

Callers 6

WithSecondsFunction · 0.85
TestWithParserFunction · 0.85
TestFuncPanicRecoveryFunction · 0.85
TestJobPanicRecoveryFunction · 0.85
TestNonLocalTimezoneFunction · 0.85
newWithSecondsFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestWithParserFunction · 0.68
TestFuncPanicRecoveryFunction · 0.68
TestJobPanicRecoveryFunction · 0.68
TestNonLocalTimezoneFunction · 0.68
newWithSecondsFunction · 0.68