Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNoWorkersEnabled = errors.New("no workers enabled")
Functions ¶
This section is empty.
Types ¶
type Decorator ¶ added in v0.5.0
type Decorator struct { Key string Decorate DecorateFunction }
type RegistryParams ¶
type RegistryParams struct { fx.In fx.Shutdowner Workers []Worker `group:"workers"` Decorators []Decorator `group:"worker_decorators"` Logger *zap.SugaredLogger }
type RegistryResult ¶
func NewRegistry ¶
func NewRegistry(p RegistryParams) (RegistryResult, error)
Click to show internal directories.
Click to hide internal directories.