Documentation
¶
Overview ¶
Package core provides core functionality for flashingestor including directory management, logging, and event handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration formats a duration into a human-readable string
func FormatFileSize ¶
FormatFileSize formats bytes into human-readable size string.
Types ¶
type ConversionUpdate ¶
type ConversionUpdate struct {
Step int
Status string
Processed int
Total int
Percent float64
Speed string
AvgSpeed string
ETA string
Elapsed string
}
ConversionUpdate represents a progress update from the conversion process
type Directories ¶
Directories holds paths to output directories.
func SetupDirectories ¶
func SetupDirectories(baseDir string) (*Directories, error)
SetupDirectories creates the required output directory structure.
type LogMessage ¶
LogMessage represents a log entry with level
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger handles message logging to both UI and file.
func NewLogger ¶
func NewLogger(channel chan LogMessage, file *os.File, logCallback func(string), verboseLevel int) *Logger
NewLogger creates a new logger instance.
Click to show internal directories.
Click to hide internal directories.