Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(data *ServiceData) error
StartServer init the service to listen to kafka messages and pass it to transcrption
Types ¶
type DB ¶
type DB interface { GetAudio(kafkaID string) (*kafkaapi.DBEntry, error) SaveResult(data *kafkaapi.DBResultEntry) error }
DB loads writes data to AFT Storage
type Filer ¶
type Filer interface { Find(kafkaID string) (*kafkaapi.KafkaTrMap, error) SetWorking(krIds *kafkaapi.KafkaTrMap) error Delete(kafkaID string) error }
Filer helps persist working IDs
type KafkaReader ¶
KafkaReader provides messages from Kafka
type KafkaWriter ¶
type KafkaWriter interface {
Write(msg *kafkaapi.ResponseMsg) error
}
KafkaWriter writes msgs to kafka
type ServiceData ¶
type ServiceData struct {
// contains filtered or unexported fields
}
ServiceData keeps data required for service work
Click to show internal directories.
Click to hide internal directories.