queries

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagTitle

func GetTagTitle(key string, c Conf) (string, error)

GetTagTitle returns the title of a tag given the tag's key.

func GetTotalFavorites

func GetTotalFavorites(rating int, c Conf) (int, error)

GetTotalFavorites returns the total number of media items with a rating of 5.

func GetTotalFolders

func GetTotalFolders(c Conf) (int, error)

GetTotalFolders returns the total of all folders.

func GetTotalMediaItems

func GetTotalMediaItems(rating int, from, to, camera, lens string, c Conf) (int, error)

GetTotalMediaItems returns the number of media items.

func GetTotalOfFolder

func GetTotalOfFolder(group, name string, c Conf) (int, error)

GetTotalOfFolder returns the total of media items in a folder.

func GetTotalOfTag

func GetTotalOfTag(group string, c Conf) (int, error)

GetTotalOfTag returns the number of media items with a given exif tag.

func GetTotalTags

func GetTotalTags(c Conf) (int, error)

GetTotalTags returns the number of tags.

Types

type ApiCredentials

type ApiCredentials = types.ApiCredentials

func GetAllKeys

func GetAllKeys(c Conf) ([]ApiCredentials, error)

GetAllKeys returns a list of all hashed keys.

type Conf

type Conf = types.Conf

type DatabaseMedia

type DatabaseMedia = types.DatabaseMedia

type Day

type Day = types.Day

type Days

type Days = types.Days

func GetOnThisDay

func GetOnThisDay(c Conf) (Days, error)

GetOnThisDay returns media items that occurred on the today's date in previous years and groups them into years.

type Directory

type Directory = types.Directory

type FilterParams

type FilterParams = types.FilterParams

type Folder

type Folder = types.Folder

type FolderMedia

type FolderMedia = types.FolderMedia

type GearItem

type GearItem = types.GearItem

type GearItems

type GearItems = types.GearItems

func GetGear

func GetGear(column string, c Conf) (GearItems, error)

GetGear returns the total unique counts for a specified gear column.

type MapItem

type MapItem = types.MapItem

func GetMapItems

func GetMapItems(c Conf) ([]MapItem, error)

GetMapItems returns all media items' coordinates.

type Media

type Media = types.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

func GetMediaItems(offset int, direction string, total int, c Conf) ([]Media, error)

GetMediaItems returns all media items for use in scanning.

func GetSingleMediaItem

func GetSingleMediaItem(hash uint32, c Conf) (Media, error)

GetSingleMediaItem retrieves a single media item by hash from the database.

func GetTag

func GetTag(offset int, direction string, pageSize int, group, name string, c Conf) ([]Media, error)

GetTag returns media items with a given exif tag.

type MediaCollection

type MediaCollection struct {
	Items []Media
}

type PrevNext

type PrevNext = types.PrevNext

func GetNext

func GetNext(date time.Time, hash uint32, collection, key string, rating, total int, params FilterParams, previous []PrevNext, c Conf) ([]PrevNext, error)

GetNext returns the media items after the current media item in chronological order.

func GetPrevious

func GetPrevious(date time.Time, hash uint32, collection, key string, rating int, params FilterParams, c Conf) ([]PrevNext, error)

GetPrevious returns the media items before the current media item in chronological order.

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 Segment

type Segment = types.Segment

type SegmentGroup

type SegmentGroup = types.SegmentGroup

type SegmentMedia

type SegmentMedia = types.SegmentMedia

type Subject

type Subject = types.Subject

type Subjects

type Subjects = types.Subjects

func GetTags

func GetTags(group, direction string, c Conf) (Subjects, error)

GetTags returns all tags.

type TreeNode

type TreeNode = types.TreeNode

func GetFolders

func GetFolders(params FilterParams, group string, pageSize, offset int, c Conf) ([]*TreeNode, error)

GetFolders returns a list of folders organized in a tree structure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL