MCPcopy Index your code
hub / github.com/DoNewsCode/core / WithName

Function WithName

cron/options.go:21–25  ·  view source on GitHub ↗

WithName sets the name of the job.

(name string)

Source from the content-addressed store, hash-verified

19
20// WithName sets the name of the job.
21func 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.
28func WithSchedule(schedule cron.Schedule) JobOption {

Callers 2

ProvideCronMethod · 0.92
TestJobOptionFunction · 0.70

Calls

no outgoing calls

Tested by 2

ProvideCronMethod · 0.74
TestJobOptionFunction · 0.56