Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoWorkersEnabled = errors.New("no workers enabled")
Functions ¶
This section is empty.
Types ¶
type Decorator ¶
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.