Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWorkerService ¶
func StartWorkerService(ctx context.Context, data *ServiceData) (<-chan struct{}, error)
StartWorkerService starts the event queue listener service to listen for events returns channel for tracking if all jobs are finished
Types ¶
type ServiceData ¶
type ServiceData struct { MsgSender MsgSender InformMsgSender MsgSender StatusSaver StatusSaver UploadCh <-chan amqp.Delivery SplitCh <-chan amqp.Delivery SynthesizeCh <-chan amqp.Delivery JoinCh <-chan amqp.Delivery RestoreUsageCh <-chan amqp.Delivery Splitter Worker Synthesizer Worker Joiner Worker UsageRestorer Worker StopCtx context.Context }
ServiceData keeps data required for service work
type StatusSaver ¶
StatusSaver persists data to DB
Click to show internal directories.
Click to hide internal directories.