photoprism/internal/entity/const.go

81 lines
1.5 KiB
Go
Raw Normal View History

package entity
// Panorama Projection Types
// TODO: Move to separate package.
const (
ProjDefault = ""
ProjEquirectangular = "equirectangular"
ProjCubestrip = "cubestrip"
ProjCylindrical = "cylindrical"
ProjTransverseCylindrical = "transverse-cylindrical"
ProjPseudocylindricalCompromise = "pseudocylindrical-compromise"
)
// Content Types
const (
TypeDefault = ""
TypeImage = "image"
TypeLive = "live"
TypeVideo = "video"
TypeRaw = "raw"
TypeText = "text"
)
// Root Directories Types
const (
RootUnknown = ""
RootOriginals = "/"
RootExamples = "examples"
RootSidecar = "sidecar"
RootImport = "import"
RootPath = "/"
)
// Unknown Values
const (
UnknownYear = -1
UnknownMonth = -1
UnknownDay = -1
UnknownName = "Unknown"
UnknownTitle = UnknownName
UnknownID = "zz"
)
// Event Types
const (
Updated = "updated"
Created = "created"
Deleted = "deleted"
)
// Photo Stacks
const (
IsStacked int8 = 1
IsStackable int8 = 0
IsUnstacked int8 = -1
)
// Sort Orders
const (
SortOrderRelevance = "relevance"
SortOrderCount = "count"
SortOrderAdded = "added"
SortOrderEdited = "edited"
SortOrderNewest = "newest"
SortOrderOldest = "oldest"
SortOrderPlace = "place"
SortOrderMoment = "moment"
SortOrderName = "name"
SortOrderPath = "path"
SortOrderSlug = "slug"
SortOrderCategory = "category"
SortOrderSimilar = "similar"
)