Add comments to entity package constants

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-09 10:51:22 +02:00
parent aedc0279e3
commit e83bb6ff02

View file

@ -3,7 +3,7 @@ package entity
import "github.com/photoprism/photoprism/internal/classify"
const (
// data sources
// Data sources.
SrcAuto = ""
SrcManual = "manual"
SrcEstimate = "estimate"
@ -14,7 +14,7 @@ const (
SrcLocation = classify.SrcLocation
SrcImage = classify.SrcImage
// sort orders
// Sort orders.
SortOrderRelevance = "relevance"
SortOrderNewest = "newest"
SortOrderOldest = "oldest"
@ -22,11 +22,12 @@ const (
SortOrderSimilar = "similar"
SortOrderName = "name"
// unknown values
// Unknown values.
YearUnknown = -1
MonthUnknown = -1
TitleUnknown = "Unknown"
// Content types.
TypeDefault = ""
TypeImage = "image"
TypeLive = "live"
@ -34,12 +35,14 @@ const (
TypeRaw = "raw"
TypeText = "text"
// Root directories.
RootOriginals = ""
RootExamples = "examples"
RootSidecar = "sidecar"
RootImport = "import"
RootPath = "/"
// Event names.
Updated = "updated"
Created = "created"
Deleted = "deleted"