mapper

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 16 Imported by: 0

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 coreModel.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 []coreModel.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 coreModel.Page,
	validatedQueryParams data.SearchURLParams, categories []data.Category, topicCategories []data.Topic, populationTypes []data.PopulationTypes, dimensions []data.Dimensions,
	respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, validationErrs []coreModel.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 coreModel.Page,
	validatedQueryParams data.SearchURLParams, respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, template string, topic cache.Topic, validationErrs []coreModel.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 coreModel.Page,
	validatedQueryParams data.SearchURLParams, respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, template string, topic cache.Topic, validationErrs []coreModel.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 coreModel.Page,
	validatedQueryParams data.SearchURLParams, categories []data.Category, topicCategories []data.Topic,
	respC *searchModels.SearchResponse, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation, validationErrs []coreModel.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 *coreModel.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