handler

package
v0.0.0-...-0898738 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func Index

func Index(client flickr.Client, userInfo UserInfo, pageSize int, templates *template.Template) *Handler

func Sets

func Sets(client flickr.Client, userInfo UserInfo, pageSize int, templates *template.Template) *Handler

func Tags

func Tags(client flickr.Client, userInfo UserInfo, pageSize int, templates *template.Template) *Handler

func (*Handler) List

func (h *Handler) List() http.HandlerFunc

func (*Handler) Show

func (h *Handler) Show() http.HandlerFunc

type Photo

type Photo struct {
	ID     string
	Src    string
	Width  int
	Height int
}

type PhotosCtx

type PhotosCtx struct {
	Title    string
	UserInfo UserInfo
	PrevPage string
	NextPage string
	Photos   []Photo
}

type Set

type Set struct {
	ID    string
	Title string
}

type SetsCtx

type SetsCtx struct {
	Title    string
	UserInfo UserInfo
	Sets     []Set
}

type TagsCtx

type TagsCtx struct {
	Title    string
	UserInfo UserInfo
	Tags     []string
}

type UserInfo

type UserInfo struct {
	ID         string
	PhotosURL  string
	ProfileURL string
	RealName   string
	UserName   string
}

func (UserInfo) Name

func (info UserInfo) Name() string

Jump to

Keyboard shortcuts

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