productPage

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(cfg config.Config) http.HandlerFunc

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