WithName sets the name of the job.
(name string)
| 19 | |
| 20 | // WithName sets the name of the job. |
| 21 | func WithName(name string) JobOption { |
| 22 | return func(descriptor *JobDescriptor) { |
| 23 | descriptor.Name = name |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // WithSchedule sets the cron schedule of the job. |
| 28 | func WithSchedule(schedule cron.Schedule) JobOption { |
no outgoing calls