asset

package
v0.0.0-...-9c57a2a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	GUID        string    `json:"GUID"`
	AlbumGUID   string    `json:"AlbumGUID"`
	Date        time.Time `json:"Date" mapstructure:"timestamp"`
	SortingDate time.Time `json:"SortingDate"`
	Author      string    `json:"Author" mapstructure:"fullName"`
	AuthorID    string    `json:"AuthorID" mapstructure:"personID"`
	IsMine      bool      `json:"IsMine"`
	IsVideo     bool      `json:"IsVideo"`
	Filename    string    `json:"Filename"`
	Filetype    string    `json:"Filetype"`
	MIME        string    `json:"MIME"`
	Width       uint64    `json:"Width"`
	Height      uint64    `json:"Height"`
	//Date       float64             `json:"Date"`
	//BatchDate       float64             `json:"BatchDate"`
	Number float64 `json:"PhotoNumber" mapstructure:"photoNumber"`
	//LastCommentDate time.Time           `json:"LastCommentDate"`
	Comments map[string]*comment.Comment `json:"Comments"`

	PlistAssetData []plistAsset `mapstructure:"assets"`
}

Asset corresponds to each row in the 'chat' table, along with a lock for the Messages

func GetAssets

func GetAssets(albumGUID string, isRefresh bool) (map[string]*Asset, *Asset)

GetAssets returns all assets included within a specific album

type List

type List []Asset

List for sorting assets

func (List) Len

func (a List) Len() int

Len is part of sort.Interface.

func (List) Less

func (a List) Less(i, j int) bool

Less is part of sort.Interface. We use count as the value to sort by

func (List) Swap

func (a List) Swap(i, j int)

Swap is part of sort.Interface.

Jump to

Keyboard shortcuts

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