Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory a produces a function that can start a process The callback is responsible for calling wg.Done() to complete process registration
func Reactor ¶
func Reactor(topic cqrs.RouteKey, broker cqrs.Broker, logger logz.FieldLogger, onMessage cqrs.OnMessageFunc, onError cqrs.OnMessageErrorFunc, ackDeadline *time.Duration) Factory
Reactor subscribes using the given topic and processes messages using the provided handlers
type Manager ¶
type Manager struct { StartTimeout time.Duration DisabledSubsystems sync.Map // contains filtered or unexported fields }
Manager handles the registration and lifecycle of Process
func NewManager ¶
NewManager creates a new Manager instance StartTimeout defaults to 10 seconds
func (*Manager) Register ¶
Register store a Process on the Manager An error is returned if a process with that name already exists
Click to show internal directories.
Click to hide internal directories.