productPage

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, req *http.Request)

Handler ...

Types

type Child

type Child struct {
	Title       string `json:"title"`
	URI         string `json:"uri"`
	Description string `json:"description"`
}

Child contains metadata for child pages

type HighlightedPage

type HighlightedPage struct {
	Title string `json:"title"`
	URI   string `json:"uri"`
}

HighlightedPage contains some metadata for featured/highlight content

type Page

type Page struct {
	model.Page
	Data ProductPage `json:"data"`
}

Page contains data re-used for each page type a Data struct for data specific to the page type

type ProductPage

type ProductPage struct {
	HighlightedPages []HighlightedPage `json:"highlightedPages"`
	Children         []Child           `json:"children"`
}

ProductPage contains data specific to this page type

Jump to

Keyboard shortcuts

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