Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrMissingKey when config key for worker is missing ErrMissingKey = internal.Error("missing worker key") // ErrEmptyConfig when viper not passed to params ErrEmptyConfig = internal.Error("empty config") // ErrEmptyWorkers when workers not passed to params ErrEmptyWorkers = internal.Error("empty workers") // ErrEmptyLocker when locker required, // but not passed to params ErrEmptyLocker = internal.Error("empty locker") // ErrEmptyJob when worker job is nil ErrEmptyJob = internal.Error("empty job") )
Variables ¶
View Source
var Module = module.Module{ {Constructor: NewWorkers}, {Constructor: NewWorkersGroup}, }
Module of workers
Functions ¶
func NewWorkers ¶
NewWorkers returns wrapped workers slice created by config settings
Types ¶
type LockerSettings ¶ added in v0.12.0
LockerSettings creates copy of locker and applies settings
Click to show internal directories.
Click to hide internal directories.