Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
Title string `json:"title"`
Description string `json:"description"`
URI string `json:"uri"`
ImageURL string `json:"image_url"`
ImageAlt string `json:"image_alt"`
}
Feature is data for linked content
type FigureURIs ¶
FigureURIs struct contains URI's to related analysis and data
type Homepage ¶
type Homepage struct {
MainFigures map[string]*MainFigure `json:"main_figures"`
HasMainFigures bool `json:"has_main_figures"`
ReleaseCalendar ReleaseCalendar `json:"release_calendar"`
Featured []Feature `json:"featured"`
HasFeaturedContent bool `json:"has_featured_content"`
AroundONS []Feature `json:"arounds_ons"`
}
Homepage contains data specific to this page type
type HomepageData ¶
type HomepageData struct {
AroundONS *[]Feature
EmergencyBanner zebedee.EmergencyBanner
FeaturedContent *[]Feature
MainFigures map[string]*MainFigure
ReleaseCalendar *ReleaseCalendar
ServiceMessage string
}
type MainFigure ¶
type MainFigure struct {
ID string `json:"id"`
Title string `json:"title"`
Summary string `json:"summary"`
Date string `json:"date"`
Figure string `json:"figure"`
Trend Trend `json:"trend"`
ShowTrend bool `json:"show_trend"`
TrendDescription string `json:"trend_description"`
Unit string `json:"unit"`
FigureURIs FigureURIs `json:"figure_uris"`
}
MainFigure is the data for an individual timeseries
type Page ¶
Page contains data re-used for each page type a Data struct for data specific to the page type
type Release ¶
type Release struct {
Title string `json:"title"`
URI string `json:"uri"`
ReleaseDate string `json:"releaseDate"`
}
Release is the data for an individual release
type ReleaseCalendar ¶
type ReleaseCalendar struct {
Releases []Release `json:"releases"`
NumberOfReleases int `json:"number_of_releases"`
NumberOfOtherReleasesInSevenDays int `json:"number_of_other_releases"`
}
ReleaseCalendar is data for release calendar block
Click to show internal directories.
Click to hide internal directories.