mapper

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 9 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, respC searchC.Response, departments searchC.Department, lang string, ErrorMessage string) model.SearchPage

CreateSearchPage maps type searchC.Response to model.Page

func GetMockDepartmentResponse added in v0.7.0

func GetMockDepartmentResponse() (searchC.Department, error)

GetMockDepartmentResponse get a mock department response in searchC.Department type

func GetMockSearchResponse added in v0.6.0

func GetMockSearchResponse() (searchC.Response, error)

GetMockSearchResponse get a mock search response in searchC.Response type

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