mapper

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataAggregationPage added in v0.47.0

func CreateDataAggregationPage(cfg *config.Config, req *http.Request, basePage core.Page,
	validatedQueryParams data.SearchURLParams, categories []data.Category, topicCategories []data.Topic,
	respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation,
	template string, topic cache.Topic, validationErrs []core.ErrorItem,
) model.SearchPage

CreateDataAggregationPage maps type searchC.Response to model.Page

func CreateDataFinderPage added in v0.41.0

func CreateDataFinderPage(cfg *config.Config, req *http.Request, basePage core.Page,
	validatedQueryParams data.SearchURLParams, categories []data.Category, topicCategories []data.Topic, dimensions []data.Dimensions,
	respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, validationErrs []core.ErrorItem,
	navigationContent *topicModel.Navigation,
) model.SearchPage

CreateSearchPage maps type searchC.Response to model.Page

func CreatePreviousReleasesPage added in v0.64.0

func CreatePreviousReleasesPage(cfg *config.Config, req *http.Request, basePage core.Page,
	validatedQueryParams data.SearchURLParams, respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, template string, topic cache.Topic, validationErrs []core.ErrorItem, zebedeeResp zebedee.PageData, bc []zebedee.Breadcrumb,
) model.SearchPage

CreatePreviousReleasesPage maps type searchC.Response to model.Page

func CreateRelatedDataPage added in v0.67.0

func CreateRelatedDataPage(cfg *config.Config, req *http.Request, basePage core.Page,
	validatedQueryParams data.SearchURLParams, respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, template string, topic cache.Topic, validationErrs []core.ErrorItem, zebedeeResp zebedee.PageData, bc []zebedee.Breadcrumb,
) model.SearchPage

func CreateSearchPage added in v0.2.0

func CreateSearchPage(cfg *config.Config, req *http.Request, basePage core.Page,
	validatedQueryParams data.SearchURLParams, categories []data.Category, topicCategories []data.Topic,
	respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, validationErrs []core.ErrorItem,
) model.SearchPage

CreateSearchPage maps type searchC.Response to model.Page

func GetFindADatasetResponse added in v0.41.0

func GetFindADatasetResponse() (*searchModels.SearchResponse, error)

func GetMockBreadcrumbResponse added in v0.65.0

func GetMockBreadcrumbResponse() ([]zebedeeC.Breadcrumb, error)

func GetMockHomepageContent added in v0.26.0

func GetMockHomepageContent() (zebedeeC.HomepageContent, error)

GetMockHomepageContent gets mock homepage content

func GetMockSearchResponse added in v0.6.0

func GetMockSearchResponse() (*searchModels.SearchResponse, error)

GetMockSearchResponse get a mock search response in searchC.Response type from dp-search-api using ES 7.10

func GetMockZebedeePageDataResponse added in v0.64.0

func GetMockZebedeePageDataResponse() (zebedeeC.PageData, error)

func MapCookiePreferences added in v0.11.0

func MapCookiePreferences(req *http.Request, preferencesIsSet *bool, policy *core.CookiesPolicy)

MapCookiePreferences reads cookie policy and preferences cookies and then maps the values to the page model

Types

This section is empty.

Jump to

Keyboard shortcuts

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