photoprism/internal/entity/src.go

34 lines
634 B
Go
Raw Normal View History

package entity
import "github.com/photoprism/photoprism/internal/classify"
type Priorities map[string]int
// Data source names.
const (
SrcAuto = ""
SrcManual = "manual"
SrcEstimate = "estimate"
SrcName = "name"
SrcMeta = "meta"
SrcXmp = "xmp"
SrcYaml = "yaml"
SrcImage = classify.SrcImage
SrcKeyword = classify.SrcKeyword
SrcLocation = classify.SrcLocation
)
// Data source priorities.
var SrcPriority = Priorities{
SrcAuto: 1,
SrcEstimate: 2,
SrcName: 4,
SrcYaml: 8,
SrcLocation: 8,
SrcImage: 8,
SrcKeyword: 16,
SrcMeta: 16,
SrcXmp: 32,
SrcManual: 64,
}