From 1f9f646f51dcf89d83dc463258467d4e442866f1 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 25 Feb 2024 23:38:16 +0600 Subject: [PATCH] Refactoring. type File struct and type ConvertSetting struct moved to convertor.go. --- kernel/convertor.go | 12 ++++++++++++ kernel/queue.go | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) 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