mapper

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 searchC.Response, lang string, homepageResponse zebedee.HomepageContent, errorMessage string,
	navigationContent *topicModel.Navigation) model.SearchPage

CreateSearchPage maps type searchC.Response to model.Page

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() (searchC.Response, error)

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

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