Add conversion job logic
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package repo
|
||||
|
||||
import "git.vakhrushev.me/av/transcriber/internal/entity"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.vakhrushev.me/av/transcriber/internal/entity"
|
||||
)
|
||||
|
||||
type FileRepository interface {
|
||||
Create(file *entity.File) error
|
||||
@@ -9,7 +13,9 @@ type FileRepository interface {
|
||||
|
||||
type TranscriptJobRepository interface {
|
||||
Create(job *entity.TranscribeJob) error
|
||||
Save(job *entity.TranscribeJob) error
|
||||
GetByID(id string) (*entity.TranscribeJob, error)
|
||||
FindAndAcquire(state, acquisitionId string, rottingTime time.Time) (*entity.TranscribeJob, error)
|
||||
}
|
||||
|
||||
type ObjectStorage interface {
|
||||
|
Reference in New Issue
Block a user