Documentation ¶
Index ¶
- Constants
- type JobWrapper
- type Node
- type Option
- func WithChain(wrappers ...cron.JobWrapper) Option
- func WithLazyPick(lazy bool) Option
- func WithLocation(loc *time.Location) Option
- func WithLogger(logger cron.Logger) Option
- func WithNodeUpdateInterval(dur time.Duration) Option
- func WithParser(p cron.ScheduleParser) Option
- func WithSeconds() Option
- type Task
Constants ¶
View Source
const ( JobLocal = "Local" JobDistributed = "Distributed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobWrapper ¶ added in v3.6.6
type JobWrapper struct { Id cron.EntryID Job cron.Job Func func() Task *Task Name string Type string }
JobWrapper is a job wrapper
func (*JobWrapper) Run ¶ added in v3.6.6
func (job *JobWrapper) Run()
type Node ¶ added in v3.6.6
type Node struct { Task *Task // contains filtered or unexported fields }
type Option ¶
type Option func(*Task)
func WithChain ¶ added in v3.6.6
func WithChain(wrappers ...cron.JobWrapper) Option
WithChain is wrap cron.Cron with chains
func WithLazyPick ¶ added in v3.6.6
WithLazyPick set lazy pick option
func WithLocation ¶ added in v3.6.6
WithLocation is wrap cron.Cron with location
func WithLogger ¶ added in v3.6.6
WithLogger is wrap cron.Cron with logger
func WithNodeUpdateInterval ¶ added in v3.6.6
WithNodeUpdateInterval set node update interval
func WithParser ¶ added in v3.6.6
func WithParser(p cron.ScheduleParser) Option
WithParser is wrap cron.Cron with schedules
func WithSeconds ¶ added in v3.6.6
func WithSeconds() Option
WithSeconds is wrap cron.Cron with seconds
Click to show internal directories.
Click to hide internal directories.