ihkh: hawx.me/code/ihkh/handler Index | Files

package handler

import "hawx.me/code/ihkh/handler"

Index

Package Files

actions.go handler.go models.go

type Handler Uses

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

func Index Uses

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

func Sets Uses

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

func Tags Uses

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

func (*Handler) List Uses

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

func (*Handler) Show Uses

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

type Photo Uses

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

type PhotosCtx Uses

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

type Set Uses

type Set struct {
    ID    string
    Title string
}

type SetsCtx Uses

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

type TagsCtx Uses

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

type UserInfo Uses

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

func (UserInfo) Name Uses

func (info UserInfo) Name() string

Package handler imports 7 packages (graph) and is imported by 1 packages. Updated 2019-05-30. Refresh now. Tools for package owners.