8989c987a2
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
15 lines
248 B
Go
15 lines
248 B
Go
package photoprism
|
|
|
|
type IndexJob struct {
|
|
FileName string
|
|
Related RelatedFiles
|
|
IndexOpt IndexOptions
|
|
Ind *Index
|
|
}
|
|
|
|
func IndexWorker(jobs <-chan IndexJob) {
|
|
for job := range jobs {
|
|
IndexRelated(job.Related, job.Ind, job.IndexOpt)
|
|
}
|
|
}
|