Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kmulvey committed May 2, 2024
1 parent 9a03423 commit 6e1268b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/app/imageconvert/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var ImageExtensionRegex = regexp.MustCompile(".*.jpg$|.*.jpeg$|.*.png$|.*.webp$|
// RenameExtensionRegex captures file extensions that we would like to rename to the extensions above.
var RenameSuffixRegex = regexp.MustCompile(".*.jpeg$|.*.png$|.*.webp$|.*.JPG$|.*.JPEG$|.*.PNG$|.*.WEBP$")

// NilTime is 0
var NilTime = time.Time{}

// ParseSkipMap reads the log from the last time this was run and
Expand Down
1 change: 1 addition & 0 deletions internal/app/imageconvert/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
log "github.com/sirupsen/logrus"
)

// Start begins the conversion process and returns counts of each type of operation preformed.
func (ic *ImageConverter) Start(results chan ConversionResult) (int, int, int, int, map[string]int, error) {

var resultChans = make([]chan ConversionResult, ic.Threads)
Expand Down
1 change: 1 addition & 0 deletions internal/app/imageconvert/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/kmulvey/path"
)

// ConversionResult is all the information about the image that was converted.
type ConversionResult struct {
OriginalFileName string
ConvertedFileName string
Expand Down

0 comments on commit 6e1268b

Please sign in to comment.