Documentation
¶
Index ¶
- Constants
- func CreateCensusDatasetLandingPage(ctx context.Context, req *http.Request, basePage coreModel.Page, ...) datasetLandingPageCensus.Page
- func CreateEditionsList(basePage coreModel.Page, ctx context.Context, req *http.Request, ...) datasetEditionsList.Page
- func CreateFilterableLandingPage(basePage coreModel.Page, ctx context.Context, req *http.Request, ...) datasetLandingPageFilterable.Page
- func CreateVersionsList(basePage coreModel.Page, req *http.Request, d dataset.DatasetDetails, ...) datasetVersionsList.Page
- func MapCookiePreferences(req *http.Request, preferencesIsSet *bool, policy *coreModel.CookiesPolicy)
- type StaticDatasetLandingPage
- type TimeSlice
Constants ¶
View Source
const ( DimensionTime = "time" DimensionAge = "age" DimensionGeography = "geography" SixteensVersion = "67f6982" )
Dimension names
Variables ¶
This section is empty.
Functions ¶
func CreateCensusDatasetLandingPage ¶ added in v1.24.0
func CreateCensusDatasetLandingPage(ctx context.Context, req *http.Request, basePage coreModel.Page, d dataset.DatasetDetails, version dataset.Version, opts []dataset.Options, dims dataset.VersionDimensions, initialVersionReleaseDate string, hasOtherVersions bool, lang string, maxNumberOfOptions int) datasetLandingPageCensus.Page
CreateCensusDatasetLandingPage creates a census-landing page based on api model responses
func CreateEditionsList ¶
func CreateEditionsList(basePage coreModel.Page, ctx context.Context, req *http.Request, d dataset.DatasetDetails, editions []dataset.Edition, datasetID string, breadcrumbs []zebedee.Breadcrumb, lang, apiRouterVersion string) datasetEditionsList.Page
CreateEditionsList creates a editions list page based on api model responses
func CreateFilterableLandingPage ¶
func CreateFilterableLandingPage(basePage coreModel.Page, ctx context.Context, req *http.Request, d dataset.DatasetDetails, ver dataset.Version, datasetID string, opts []dataset.Options, dims dataset.VersionDimensions, displayOtherVersionsLink bool, breadcrumbs []zebedee.Breadcrumb, latestVersionNumber int, latestVersionURL, lang, apiRouterVersion string, maxNumOpts int) datasetLandingPageFilterable.Page
CreateFilterableLandingPage creates a filterable dataset landing page based on api model responses
func CreateVersionsList ¶
func CreateVersionsList(basePage coreModel.Page, req *http.Request, d dataset.DatasetDetails, edition dataset.Edition, versions []dataset.Version) datasetVersionsList.Page
CreateVersionsList creates a versions list page based on api model responses
func MapCookiePreferences ¶ added in v1.13.0
func MapCookiePreferences(req *http.Request, preferencesIsSet *bool, policy *coreModel.CookiesPolicy)
MapCookiePreferences reads cookie policy and preferences cookies and then maps the values to the page model
Types ¶
type StaticDatasetLandingPage ¶ added in v1.13.0
type StaticDatasetLandingPage datasetLandingPageStatic.Page
StaticDatasetLandingPage is a StaticDatasetLandingPage representation
func CreateLegacyDatasetLanding ¶ added in v1.13.0
func CreateLegacyDatasetLanding(basePage coreModel.Page, ctx context.Context, req *http.Request, dlp zebedee.DatasetLandingPage, bcs []zebedee.Breadcrumb, ds []zebedee.Dataset, localeCode string) StaticDatasetLandingPage
CreateLegacyDatasetLanding maps a zebedee response struct into a frontend model to be used for rendering
Click to show internal directories.
Click to hide internal directories.