Refactoring.
type File struct and type ConvertSetting struct moved to convertor.go.
This commit is contained in:
parent
d88586739a
commit
1f9f646f51
@ -10,6 +10,18 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type File struct {
|
||||||
|
Path string
|
||||||
|
Name string
|
||||||
|
Ext string
|
||||||
|
}
|
||||||
|
|
||||||
|
type ConvertSetting struct {
|
||||||
|
VideoFileInput File
|
||||||
|
VideoFileOut File
|
||||||
|
OverwriteOutputFiles bool
|
||||||
|
}
|
||||||
|
|
||||||
type ConvertorContract interface {
|
type ConvertorContract interface {
|
||||||
RunConvert(setting ConvertSetting, progress ProgressContract) error
|
RunConvert(setting ConvertSetting, progress ProgressContract) error
|
||||||
GetTotalDuration(file *File) (float64, error)
|
GetTotalDuration(file *File) (float64, error)
|
||||||
|
@ -10,18 +10,6 @@ type Queue struct {
|
|||||||
Error error
|
Error error
|
||||||
}
|
}
|
||||||
|
|
||||||
type File struct {
|
|
||||||
Path string
|
|
||||||
Name string
|
|
||||||
Ext string
|
|
||||||
}
|
|
||||||
|
|
||||||
type ConvertSetting struct {
|
|
||||||
VideoFileInput File
|
|
||||||
VideoFileOut File
|
|
||||||
OverwriteOutputFiles bool
|
|
||||||
}
|
|
||||||
|
|
||||||
type StatusContract interface {
|
type StatusContract interface {
|
||||||
name() string
|
name() string
|
||||||
ordinal() int
|
ordinal() int
|
||||||
|
Loading…
Reference in New Issue
Block a user