Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶ added in v1.5.1
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 ¶ added in v1.5.1
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 MainFigure ¶ added in v1.5.1
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 ¶ added in v1.5.3
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
type Trend ¶ added in v1.5.1
type Trend struct { IsUp bool `json:"is_up"` IsDown bool `json:"is_down"` IsFlat bool `json:"is_flat"` Difference string `json:"difference"` Period string `json:"period"` }
Trend contains bool values about the trend of a key figure (up from last month, down from last month, etc.)
Click to show internal directories.
Click to hide internal directories.