Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWorkerService ¶
func StartWorkerService(data *ServiceData) error
StartWorkerService starts the event queue listener service to listen for events
Types ¶
type AudioDuration ¶
AudioDuration provides audio len for file/io.Reader
type FilesGetter ¶
FilesGetter retrieves file for ID
type ServiceData ¶
type ServiceData struct { MessageSender messages.Sender InformMessageSender messages.Sender Publisher messages.Publisher StatusSaver status.Saver StatusProvider StatusProvider ResultSaver manager.ResultSaver FilesGetter FilesGetter Loader result.FileLoader AudioLen AudioDuration FileSaver upload.FileSaver RequestSaver upload.RequestSaver DB WorkPersistence DecodeMultiCh <-chan amqp.Delivery JoinAudioCh <-chan amqp.Delivery JoinResultsCh <-chan amqp.Delivery OneCompletedCh <-chan amqp.Delivery OneStatusCh <-chan amqp.Delivery // contains filtered or unexported fields }
ServiceData keeps data required for service work
type StatusProvider ¶
type StatusProvider interface {
Get(ID string) (*stapi.TranscriptionResult, error)
}
StatusProvider returns status by ID
type WorkPersistence ¶
type WorkPersistence interface { Save(*persistence.WorkData) error Get(ID string) (*persistence.WorkData, error) }
WorkPersistence save, gets data to DB
Click to show internal directories.
Click to hide internal directories.