mapper

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Uri  string
	Text string
}

type Mapper added in v1.23.0

type Mapper struct {
	// contains filtered or unexported fields
}

Mapper represents the core mappings required for all pages

func NewMapper added in v1.23.0

func NewMapper(request *http.Request, basePage coreModel.Page, emergencyBanner zebedee.EmergencyBanner, language, serviceMsg, filterId string) *Mapper

NewMapper creates a new instance of Mapper

func (*Mapper) CreateAreaTypeSelector added in v1.23.0

func (m *Mapper) CreateAreaTypeSelector(areaType []population.AreaType, fDim filter.Dimension, lowest_geography, releaseDate string, dataset dataset.DatasetDetails, hasOpts bool) model.Selector

CreateAreaTypeSelector maps data to the Selector model

func (*Mapper) CreateCategorisationsSelector added in v1.23.0

func (m *Mapper) CreateCategorisationsSelector(dimLabel, dimId string, cats population.GetCategorisationsResponse) model.Selector

CreateCategorisationsSelector maps data to the Selector model

func (*Mapper) CreateFilterFlexOverview added in v1.23.0

func (m *Mapper) CreateFilterFlexOverview(filterJob filter.GetFilterResponse, filterDims []model.FilterDimension, dimDescriptions population.GetDimensionsResponse, pops population.GetPopulationTypeResponse, sdc cantabular.GetBlockedAreaCountResult, isMultivariate bool) model.Overview

CreateFilterFlexOverview maps data to the Overview model

func (*Mapper) CreateGetChangeDimensions added in v1.23.0

func (m *Mapper) CreateGetChangeDimensions(q, formAction string, dims []model.FilterDimension, pDims, results population.GetDimensionsResponse, sdc *cantabular.GetBlockedAreaCountResult) model.ChangeDimensions

CreateGetChangeDimensions maps data to the ChangeDimensions model

func (*Mapper) CreateGetCoverage added in v1.23.0

func (m *Mapper) CreateGetCoverage(geogName, nameQ, parentQ, parentArea, setParent, coverage, dim, geogID, releaseDate string, dataset dataset.DatasetDetails, areas population.GetAreasResponse, opts []model.SelectableElement, parents population.GetAreaTypeParentsResponse, hasFilterByParent bool, currentPage int) model.Coverage

CreateGetCoverage maps data to the coverage model

Jump to

Keyboard shortcuts

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