Documentation
¶
Index ¶
- func ClearAllNotifications(c Conf, username string) error
- func GetNotifications(c Conf, username string) ([]notify.Notification, error)
- 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)
- func MarkNotificationRead(c Conf, id int64, username string) error
- func Notify(c Conf, message string, status string) 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 Meta
- type Photo
- type PrevNext
- type RawMinimalMedia
- type Subject
- type Subjects
- type TimelineItem
- type TimelineResponse
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAllNotifications ¶ added in v0.0.4
ClearAllNotifications marks all notifications as read for a user
func GetNotifications ¶ added in v0.0.4
func GetNotifications(c Conf, username string) ([]notify.Notification, error)
GetNotifications retrievesall notifications
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.
func MarkNotificationRead ¶ added in v0.0.4
MarkNotificationRead marks a notification as read for a user
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 GetMemories ¶ added in v0.0.4
GetMemories 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 ¶
func GetNext ¶
func GetNext(date time.Time, hash uint32, 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 ¶
GetPrevious returns the media items before the current media item in chronological order.
type RawMinimalMedia ¶
type RawMinimalMedia = types.RawMinimalMedia
type TimelineItem ¶ added in v0.0.4
type TimelineResponse ¶ added in v0.0.4
type TimelineResponse struct {
Meta Meta `json:"meta"`
Timeline []TimelineItem `json:"timeline"`
Photos []Photo `json:"photos"`
}
func GetTimeline ¶
func GetTimeline(params *FilterParams, c Conf) (*TimelineResponse, error)
GetTimeline returns media items in the new cursor-based format.