Documentation
¶
Index ¶
- func GetTagTitle(key string, c Conf) (string, error)
- func GetTotalFavorites(rating int, c Conf) (int, error)
- func GetTotalFolders(c Conf) (int, error)
- func GetTotalMediaItems(rating int, from, to, camera, lens string, c Conf) (int, error)
- func GetTotalOfFolder(group, name string, c Conf) (int, error)
- func GetTotalOfTag(group string, c Conf) (int, error)
- func GetTotalTags(c Conf) (int, error)
- type ApiCredentials
- type Conf
- type DatabaseMedia
- type Day
- type Days
- type Directory
- type FilterParams
- type Folder
- type FolderMedia
- type GearItem
- type GearItems
- type MapItem
- type Media
- func GetFavorites(pageSize, offset, rating int, params FilterParams, c Conf) ([]Media, error)
- func GetFolder(group, name string, pageSize, offset int, params FilterParams, c Conf) ([]Media, error)
- func GetMediaItems(offset int, direction string, total int, c Conf) ([]Media, error)
- func GetSingleMediaItem(hash uint32, c Conf) (Media, error)
- func GetTag(offset int, direction string, pageSize int, group, name string, c Conf) ([]Media, error)
- type MediaCollection
- type PrevNext
- type RawMinimalMedia
- type ResponseSegment
- type Segment
- type SegmentGroup
- type SegmentMedia
- type Subject
- type Subjects
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTagTitle ¶
GetTagTitle returns the title of a tag given the tag's key.
func GetTotalFavorites ¶
GetTotalFavorites returns the total number of media items with a rating of 5.
func GetTotalFolders ¶
GetTotalFolders returns the total of all folders.
func GetTotalMediaItems ¶
GetTotalMediaItems returns the number of media items.
func GetTotalOfFolder ¶
GetTotalOfFolder returns the total of media items in a folder.
func GetTotalOfTag ¶
GetTotalOfTag returns the number of media items with a given exif tag.
Types ¶
type ApiCredentials ¶
type ApiCredentials = types.ApiCredentials
func GetAllKeys ¶
func GetAllKeys(c Conf) ([]ApiCredentials, error)
GetAllKeys returns a list of all hashed keys.
type DatabaseMedia ¶
type DatabaseMedia = types.DatabaseMedia
type Days ¶
func GetOnThisDay ¶
GetOnThisDay returns media items that occurred on the today's date in previous years and groups them into years.
type FilterParams ¶
type FilterParams = types.FilterParams
type FolderMedia ¶
type FolderMedia = types.FolderMedia
type MapItem ¶
func GetMapItems ¶
GetMapItems returns all media items' coordinates.
type Media ¶
func GetFavorites ¶
func GetFavorites(pageSize, offset, rating int, params FilterParams, c Conf) ([]Media, error)
GetFavorites returns media items with a rating of 5.
func GetFolder ¶
func GetFolder(group, name string, pageSize, offset int, params FilterParams, c Conf) ([]Media, error)
GetFolder returns the media items in a folder.
func GetMediaItems ¶
GetMediaItems returns all media items for use in scanning.
func GetSingleMediaItem ¶
GetSingleMediaItem retrieves a single media item by hash from the database.
type MediaCollection ¶
type MediaCollection struct {
Items []Media
}
type PrevNext ¶
type RawMinimalMedia ¶
type RawMinimalMedia = types.RawMinimalMedia
type ResponseSegment ¶
type ResponseSegment = types.ResponseSegment
func GetTimeline ¶
func GetTimeline(params *FilterParams, c Conf) (ResponseSegment, int, error)
GetTimeline returns all media items in a timeline format.
type SegmentGroup ¶
type SegmentGroup = types.SegmentGroup
type SegmentMedia ¶
type SegmentMedia = types.SegmentMedia