mapper

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgePage

func CreateAgePage(req *http.Request, bp core.Page, f filter.Model, d dataset.DatasetDetails, allVals dataset.Options, selVals filter.DimensionOptions, dims dataset.VersionDimensions, datasetID, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) (model.Age, error)

CreateAgePage creates an age selector page based on api responses TODO: refactor to reduce complexity

func CreateFilterOverview

func CreateFilterOverview(req *http.Request, bp core.Page, dimensions []filter.ModelDimension, datasetDims dataset.VersionDimensionItems, fm filter.Model, dst dataset.DatasetDetails, filterID, datasetID, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) model.Overview

CreateFilterOverview maps data items from API responses to form a filter overview front end page model

func CreateHierarchyPage

func CreateHierarchyPage(req *http.Request, bp core.Page, h hierarchyClient.Model, dst dataset.DatasetDetails, f filter.Model, selectedValueLabels map[string]string, dims dataset.VersionDimensions, name, curPath, datasetID, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) model.Hierarchy

CreateHierarchyPage maps data items from API responses to form a hierarchy page TODO: refactor to reduce complexity

func CreateHierarchySearchPage

func CreateHierarchySearchPage(req *http.Request, bp core.Page, items []search.Item, dst dataset.DatasetDetails, f filter.Model, selectedValueLabels map[string]string, dims []dataset.VersionDimension, name, curPath, datasetID, referrer, query, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) model.Hierarchy

CreateHierarchySearchPage forms a search page based on various api response models

func CreateListSelectorPage

func CreateListSelectorPage(req *http.Request, bp core.Page, name string, selectedValues []filter.DimensionOption, allValues dataset.Options, fm filter.Model, dst dataset.DatasetDetails, dims dataset.VersionDimensions, datasetID, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) model.Selector

CreateListSelectorPage maps items from API responses to form the model for a dimension list selector page

func CreatePreviewPage

func CreatePreviewPage(req *http.Request, bp core.Page, dimensions []filter.ModelDimension, fm filter.Model, dst dataset.DatasetDetails, filterOutputID, datasetID, releaseDate, apiRouterVersion string, enableDatasetPreview bool, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) model.Preview

CreatePreviewPage maps data items from API responses to create a preview page

func CreateTimePage

func CreateTimePage(req *http.Request, bp core.Page, f filter.Model, d dataset.DatasetDetails, allVals dataset.Options, selVals []filter.DimensionOption, dims dataset.VersionDimensions, datasetID, apiRouterVersion, lang, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) (model.Time, error)

CreateTimePage will create a time selector page based on api response models TODO: refactor to reduce complexity

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL