Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func (Importer) Import ¶
Start importing files from source in go routines. Import should be called only once, after having build a chain of processors using WrapedIn() and Then().
func (Importer) ImportFiles ¶
ImportFiles get a list of files and run processor on them.
type Processor ¶
type Processor func(ctx context.Context, importer Importer, filename string) (processedFilename string, err error)
Processor is a function that process an image read from disk
func PLogFilename ¶
PLogFilename print to the importer logger the beforeString filename and afterString
func PMoveToDateFolder ¶
PMoveToDateFolder move file to destination directory, into a folder correspoding to the photo creation date.
Click to show internal directories.
Click to hide internal directories.