Documentation
¶
Index ¶
- func HandleCookieCreationAndServ(w http.ResponseWriter, req *http.Request, newSearch, oldSearch http.Handler, ...)
- func HandleSearchExit(w http.ResponseWriter, req *http.Request, oldSearch http.Handler, ...)
- func RandomiseABTestCookie(percentage int, now time.Time) cookies.ABServices
- func SearchHandler(newSearch, oldSearch http.Handler, percentage int, domain string) http.Handler
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCookieCreationAndServ ¶
func HandleCookieCreationAndServ(w http.ResponseWriter, req *http.Request, newSearch, oldSearch http.Handler, percentage int, domain string, now time.Time)
HandleCookieCreationAndServ calls randomise, creates a cookie and servs the request
func HandleSearchExit ¶ added in v1.33.0
func RandomiseABTestCookie ¶
func RandomiseABTestCookie(percentage int, now time.Time) cookies.ABServices
RandomiseABTestCookie randomly sets expiry times for new and old search services
Types ¶
Click to show internal directories.
Click to hide internal directories.