photo

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

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Photo

type Photo struct {
	ID           string    `datastore:"-"`
	Link         string    `json:"link"`
	Type         string    `json:"type"`
	Title        string    `json:"title"`
	Description  string    `json:"description"`
	Created      time.Time `json:"created"`
	LastModified time.Time `json:"lastModified"`
	Status       string    `json:"status"`
}

Photo Status is active or deactive "Type" values are main and etc.

func GetMainByAncestor

func GetMainByAncestor(ctx context.Context, pType string, pk *datastore.Key) (
	Photo, error)

GetMainByAncestor returns the entity with main type and an error.

type Photos

type Photos map[string]*Photo

Photos is a photos map with encoded photo key as map key.

func GetFilteredByAncestorLimited

func GetFilteredByAncestorLimited(ctx context.Context, pk *datastore.Key, lim int) (
	Photos, error)

GetFilteredByAncestorLimited returns the limited entities filtered by ancestor.

Jump to

Keyboard shortcuts

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