Add comments to entity package constants
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
aedc0279e3
commit
e83bb6ff02
1 changed files with 12 additions and 9 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue