Refactoring.

type File struct and type ConvertSetting struct moved to convertor.go.
This commit is contained in:
Leonid Nikitin 2024-02-25 23:38:16 +06:00
parent d88586739a
commit 1f9f646f51
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D
2 changed files with 12 additions and 12 deletions

View File

@ -10,6 +10,18 @@ import (
"strings"
)
type File struct {
Path string
Name string
Ext string
}
type ConvertSetting struct {
VideoFileInput File
VideoFileOut File
OverwriteOutputFiles bool
}
type ConvertorContract interface {
RunConvert(setting ConvertSetting, progress ProgressContract) error
GetTotalDuration(file *File) (float64, error)

View File

@ -10,18 +10,6 @@ type Queue struct {
Error error
}
type File struct {
Path string
Name string
Ext string
}
type ConvertSetting struct {
VideoFileInput File
VideoFileOut File
OverwriteOutputFiles bool
}
type StatusContract interface {
name() string
ordinal() int