Refactoring.

type File struct and type ConvertSetting struct moved to convertor.go.
This commit is contained in:
kor-elf committed 2024-02-25 23:38:16 +06:00
1 parent d88586739a
commit 1f9f646f51
2 files changed
+12 -12

No files matched your search

+12
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)
-12
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