diff --git a/kernel/convertor.go b/kernel/convertor.go index 8441fa1..0aa24e4 100644 --- a/kernel/convertor.go +++ b/kernel/convertor.go @@ -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) diff --git a/kernel/queue.go b/kernel/queue.go index d820fa6..112ce42 100644 --- a/kernel/queue.go +++ b/kernel/queue.go @@ -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