Replace all infra services with interfaces
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
package contract
|
||||
|
||||
type ObjectStorage interface {
|
||||
import (
|
||||
"git.vakhrushev.me/av/transcriber/internal/entity"
|
||||
)
|
||||
|
||||
type AudioFileConverter interface {
|
||||
Convert(src, dest string) error
|
||||
}
|
||||
|
||||
type YandexS3Uploader interface {
|
||||
@@ -8,6 +13,8 @@ type YandexS3Uploader interface {
|
||||
FileUrl(fileName string) string
|
||||
}
|
||||
|
||||
type AudioFileConverter interface {
|
||||
Convert(src, dest string) error
|
||||
type AudioRecognizer interface {
|
||||
RecognizeFile(filePath string) (operationID string, err error)
|
||||
GetRecognitionText(operationID string) (string, error)
|
||||
CheckRecognitionStatus(operationID string) (*entity.RecognitionResult, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user