mapper

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 11 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, departments searchC.Department,
	lang string, homepageResponse zebedee.HomepageContent, ErrorMessage string) model.SearchPage

func GetMockDepartmentResponse added in v0.7.0

func GetMockDepartmentResponse() (searchC.Department, error)

GetMockDepartmentResponse get a mock department response in searchC.Department type

func GetMockHomepageContent added in v0.26.0

func GetMockHomepageContent() (zebedeeC.HomepageContent, error)

GetMockHomepageContent gets mock homepage content

func GetMockLegacySearchResponse added in v0.30.0

func GetMockLegacySearchResponse() (searchC.Response, error)

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

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