Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conversion ¶
type Conversion struct { InputPath string OutputPath string InputFormat format.Info OutputFormat format.Info }
Conversion stores all information needed to perform a conversion
func Prepare ¶ added in v0.8.0
func Prepare(file source.File, outputFormat format.Info) Conversion
Prepare will set up a conversion job given file and output format
func PrepareAll ¶
func PrepareAll(files []source.File, outputFormat format.Info) []Conversion
PrepareAll prepares an array of files for conversion
type ConversionResult ¶
type ConversionResult struct { InputPath string OutputPath string InputFormat format.Info OutputFormat format.Info Duration int64 Error string Warning string Errored bool Warned bool Success bool Skipped bool SkipReason string InputSize int64 OutputSize int64 }
ConversionResult stores information about a conversion like status, speed and so on
func Do ¶
func Do(conversion Conversion) ConversionResult
Do completes a conversion given input path, output path, input format and output format
Click to show internal directories.
Click to hide internal directories.