Documentation
¶
Index ¶
- type ApiCredentials
- type CacheKey
- type Conf
- type ConfigKey
- type DatabaseMedia
- type Date
- type Dates
- type Day
- type Days
- type Directory
- type Filter
- type FilterParams
- type Folder
- type FolderMedia
- type GearItem
- type GearItems
- type MapItem
- type Media
- type MediaItems
- type Meta
- type Month
- type ParamsKey
- type PrevNext
- type RawMinimalMedia
- type ResponsAuth
- type ResponseAdmin
- type ResponseDates
- type ResponseFilter
- type ResponseFolders
- type ResponseGear
- type ResponseMap
- type ResponseMedia
- type ResponseMediaItems
- type ResponseNotFound
- type ResponseSegment
- type ResponseTags
- type Segment
- type SegmentGroup
- type SegmentMedia
- type Subject
- type Subjects
- type TreeNode
- type User
- type UserCredentials
- type UserKey
- type Year
- type Years
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiCredentials ¶
type Conf ¶
type Conf struct {
Dev bool
DisableAuth bool
Media string
Cache string
Data string
Quality int
TranscodeResolution int
PreGenerateThumb bool
ResizeService string
LocationService string
LocationDataset string
Logger *slog.Logger
TileServer string
SessionLength int
IncludeOriginals bool
Aliases struct {
Lenses map[string]string `yaml:"lenses"`
} `yaml:"aliases"`
CustomHTML template.HTML `yaml:"custom_html"`
Meta Meta
OnThisDay bool
}
type DatabaseMedia ¶
type DatabaseMedia struct {
Hash uint32
Path string
Subject string
Width int
Height int
Ratio float32
Padding float32
Date string
Modified string
Folder string
Rating float64
ShutterSpeed string
Aperture float64
Iso float64
Lens string
Camera string
Focallength float64
Altitude float64
Latitude float64
Longitude float64
Mediatype string
Focusdistance float64
Focallength35 float64
Color string
Location string
Description string
Title string
Software string
Offset float64
Rotation float64 // only used for HEIC thumbnail creation
}
type Directory ¶
type Directory struct {
Id int
Key string
Media *[]FolderMedia // Stores up to 5 most recent items
ImageCount int `json:"imageCount"`
}
type Filter ¶
type Filter struct {
Camera string `json:"camera"`
Lens string `json:"lens"`
Term string `json:"term"`
Mediatype string `json:"type"`
Rating int `json:"rating"`
Subject string `json:"subject"`
Folder string `json:"folder"`
Software string `json:"software"`
FocalLength35 float64 `json:"focalLength35"`
}
type FilterParams ¶
type Folder ¶
type Folder struct {
Key string `json:"key"`
Parent string `json:"parent"`
Media FolderMedia `json:"media"`
}
type FolderMedia ¶
type MapItem ¶
type MapItem []float64
short hand json properties to limit response size on large responses.
type Media ¶
type Media struct {
Path string `json:"path"`
Subject Subjects `json:"subjects"`
Hash uint32 `json:"hash"`
Width int `json:"width"`
Height int `json:"height"`
Ratio float32 `json:"ratio"`
Padding float32 `json:"padding"`
Date time.Time `json:"date"`
Modified time.Time `json:"modified"`
Folder string `json:"folder"`
Srcset template.Srcset `json:"srcset"`
Rating float64 `json:"rating"`
ShutterSpeed string `json:"shutterspeed"`
Aperture float64 `json:"aperture"`
Iso float64 `json:"iso"`
Lens string `json:"lens"`
Camera string `json:"camera"`
Focallength float64 `json:"focallength"`
Altitude float64 `json:"altitude"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Type string `json:"type"`
FocusDistance float64 `json:"focusDistance"`
FocalLength35 float64 `json:"focalLength35"`
Color string `json:"color"`
Location string `json:"location"`
Description string `json:"description"`
Title string `json:"title"`
Software string `json:"software"`
Offset float64 `json:"offset"`
Rotation float64 `json:"-"` // only used for HEIC thumbnail creation
}
type MediaItems ¶
type MediaItems []Media
type RawMinimalMedia ¶
type ResponsAuth ¶
type ResponsAuth struct {
Section string
}
type ResponseAdmin ¶
type ResponseAdmin struct {
HideAuth bool
Section string
Key ApiCredentials
Keys []ApiCredentials
Users []User
UserName string
UserRole string
Meta Meta `json:"-"`
}
type ResponseDates ¶
type ResponseFilter ¶
type ResponseFilter struct {
ResponseSegment ResponseSegment `json:"segment"`
Total int `json:"total"`
PageSize int `json:"pagesize"`
Page int `json:"page"`
OrderBy string `json:"orderby"`
Direction string `json:"direction"`
Section string `json:"-"`
Filter Filter `json:"filter"`
// Folders []string `json:"folders"`
// Cameras []string `json:"cameras"`
// Lenses []string `json:"lenses"`
// Ratings []string `json:"ratings"`
Meta Meta `json:"-"`
}
type ResponseFolders ¶
type ResponseFolders struct {
Folders []*TreeNode `json:"folders"`
Title string `json:"title"`
Total int `json:"total"`
PageSize int `json:"pagesize"`
Page int `json:"page"`
OrderBy string `json:"orderby"`
Direction string `json:"direction"`
Collection string `json:"collection"`
Section string `json:"-"`
Meta Meta `json:"-"`
}
type ResponseGear ¶
type ResponseMap ¶
type ResponseMedia ¶
type ResponseMediaItems ¶
type ResponseMediaItems struct {
MediaItems []Media `json:"mediaItems"`
Title string `json:"title"`
Slug string `json:"slug"`
Total int `json:"total"`
PageSize int `json:"pagesize"`
Page int `json:"page"`
OrderBy string `json:"orderby"`
Direction string `json:"direction"`
Collection string `json:"collection"`
Section string `json:"-"`
Meta Meta `json:"-"`
}
type ResponseNotFound ¶
type ResponseSegment ¶
type ResponseSegment []*SegmentGroup
type ResponseTags ¶
type Segment ¶
type Segment struct {
SegmentId string `json:"s"`
Media []SegmentMedia `json:"i"`
}
type SegmentGroup ¶
type SegmentMedia ¶
type SegmentMedia []interface{}
type UserCredentials ¶
Click to show internal directories.
Click to hide internal directories.