4c516cac38
Signed-off-by: Michael Mayer <michael@photoprism.app>
84 lines
1.6 KiB
Go
84 lines
1.6 KiB
Go
package entity
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/pkg/media"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// Default values.
|
|
const (
|
|
Unknown = ""
|
|
UnknownYear = -1
|
|
UnknownMonth = -1
|
|
UnknownDay = -1
|
|
UnknownName = "Unknown"
|
|
UnknownTitle = UnknownName
|
|
UnknownID = "zz"
|
|
)
|
|
|
|
// Media content types.
|
|
const (
|
|
MediaUnknown = ""
|
|
MediaImage = string(media.Image)
|
|
MediaVector = string(media.Vector)
|
|
MediaAnimated = string(media.Animated)
|
|
MediaLive = string(media.Live)
|
|
MediaVideo = string(media.Video)
|
|
MediaRaw = string(media.Raw)
|
|
MediaText = string(media.Text)
|
|
)
|
|
|
|
// Storage root folders.
|
|
const (
|
|
RootUnknown = ""
|
|
RootOriginals = "/"
|
|
RootExamples = "examples"
|
|
RootSidecar = "sidecar"
|
|
RootImport = "import"
|
|
RootPath = "/"
|
|
)
|
|
|
|
// Event type.
|
|
const (
|
|
Created = "created"
|
|
Updated = "updated"
|
|
Deleted = "deleted"
|
|
)
|
|
|
|
// Photo stack states.
|
|
const (
|
|
IsStacked int8 = 1
|
|
IsStackable int8 = 0
|
|
IsUnstacked int8 = -1
|
|
)
|
|
|
|
// Sort options.
|
|
const (
|
|
SortOrderDefault = ""
|
|
SortOrderRelevance = "relevance"
|
|
SortOrderDuration = "duration"
|
|
SortOrderCount = "count"
|
|
SortOrderAdded = "added"
|
|
SortOrderImported = "imported"
|
|
SortOrderEdited = "edited"
|
|
SortOrderNewest = "newest"
|
|
SortOrderOldest = "oldest"
|
|
SortOrderPlace = "place"
|
|
SortOrderMoment = "moment"
|
|
SortOrderName = "name"
|
|
SortOrderPath = "path"
|
|
SortOrderSlug = "slug"
|
|
SortOrderCategory = "category"
|
|
SortOrderSimilar = "similar"
|
|
)
|
|
|
|
// Log levels.
|
|
const (
|
|
PanicLevel logrus.Level = iota
|
|
FatalLevel
|
|
ErrorLevel
|
|
WarnLevel
|
|
InfoLevel
|
|
DebugLevel
|
|
TraceLevel
|
|
)
|