Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJob ¶
func NewJob(handler JobHandler, options ...OptionHandler) *job
Types ¶
type JobHandler ¶
type OptionHandler ¶
type OptionHandler func(*jobConfig)
func WithName ¶
func WithName(name string) OptionHandler
func WithRetryDurations ¶
func WithRetryDurations(times []time.Duration) OptionHandler
Click to show internal directories.
Click to hide internal directories.