models

package
v0.0.0-...-0bab42b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromTag

func GetFromTag(tag string, offset int, pageSize int) (objs *[]Wallpaper, err error)

func GetFromTagCount

func GetFromTagCount(tag string) (total int, err error)

func GetRecentWallpapers

func GetRecentWallpapers(offset int, pageSize int) (objs *[]Wallpaper, err error)

func GetTotalRecentWallpapers

func GetTotalRecentWallpapers() (int, error)

Types

type Categories

type Categories struct {
	Data []Category
}

func GetAllCategories

func GetAllCategories() (objs *Categories, err error)

func (*Categories) Save

func (this *Categories) Save() (err error)

type Category

type Category struct {
	Title       string
	Description string
	Thumb       string
}

type Size

type Size struct {
	Size string
	Url  string
}

type Wallpaper

type Wallpaper struct {
	Title        string
	Id           string
	Description  string
	Tags         []string
	Sizes        []Size
	Thumb        string
	DisplayImage string
	Date         time.Time
}

func GetFromId

func GetFromId(id string) (objs *Wallpaper, err error)

func (*Wallpaper) Save

func (this *Wallpaper) Save() (err error)

Jump to

Keyboard shortcuts

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