Refactoring: clean architecture project structure
This commit is contained in:
16
internal/repo/contracts.go
Normal file
16
internal/repo/contracts.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package repo
|
||||
|
||||
import "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
|
||||
GetByID(id string) (*entity.TranscribeJob, error)
|
||||
}
|
||||
|
||||
type ObjectStorage interface {
|
||||
}
|
Reference in New Issue
Block a user