20 lines
474 B
Go
20 lines
474 B
Go
package contract
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.vakhrushev.me/av/transcriber/internal/entity"
|
|
)
|
|
|
|
type FileRepository interface {
|
|
Create(file *entity.File) error
|
|
GetByID(id string) (*entity.File, error)
|
|
}
|
|
|
|
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)
|
|
}
|