Documentation ¶
Index ¶
- Constants
- func CreateEditionsList(ctx context.Context, req *http.Request, d dataset.DatasetDetails, ...) datasetEditionsList.Page
- func CreateFilterableLandingPage(ctx context.Context, req *http.Request, d dataset.DatasetDetails, ...) datasetLandingPageFilterable.Page
- func CreateVersionsList(ctx context.Context, req *http.Request, d dataset.DatasetDetails, ...) datasetVersionsList.Page
- func MapCookiePreferences(req *http.Request, preferencesIsSet *bool, policy *model.CookiesPolicy)
- type StaticDatasetLandingPage
- type TimeSlice
Constants ¶
View Source
const ( DimensionTime = "time" DimensionAge = "age" )
Dimension names
Variables ¶
This section is empty.
Functions ¶
func CreateEditionsList ¶
func CreateEditionsList(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(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(ctx context.Context, 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 *model.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(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.