Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorker ¶
func NewWorker(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory
NewWorker create new cron worker
func UpdateIntervalActiveJob ¶
UpdateIntervalActiveJob update active job
Types ¶
type Job ¶
type Job struct { HandlerName string `json:"handler_name"` Interval string `json:"interval"` Handler types.WorkerHandler `json:"-"` Params string `json:"params"` WorkerIndex int `json:"worker_index"` // contains filtered or unexported fields }
Job model
type OptionFunc ¶ added in v1.7.4
type OptionFunc func(*option)
OptionFunc type
func SetConsul ¶ added in v1.7.4
func SetConsul(consul *candiutils.Consul) OptionFunc
SetConsul option func
func SetDebugMode ¶ added in v1.7.4
func SetDebugMode(debugMode bool) OptionFunc
SetDebugMode option func
func SetMaxGoroutines ¶ added in v1.7.4
func SetMaxGoroutines(maxGoroutines int) OptionFunc
SetMaxGoroutines option func
Click to show internal directories.
Click to hide internal directories.