Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobBuilder ¶
func JobBuilder() *builder
JobBuilder the builder of Job
examples:
c, err := cron.Parse("*/10 * * * * * *") job := JobBuilder().Id("jobid").Name("cron-job").Spec(c).Out() job := JobBuilder().Name("delay-job").Delay(time.Now().Add(time.Hour*3)).Out() job := JobBuilder().Name("duration-job").Duration(time.Second*10).Out() job := JobBuilder().Name("once-job").Duration(time.Second*5).Times(1).Out()
func StopGraceful ¶
func StopGraceful()
Types ¶
Click to show internal directories.
Click to hide internal directories.