abtest

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 HandleSearchExit(w http.ResponseWriter, req *http.Request, oldSearch http.Handler, now time.Time, domain string)

func RandomiseABTestCookie

func RandomiseABTestCookie(percentage int, now time.Time) cookies.ABServices

RandomiseABTestCookie randomly sets expiry times for new and old search services

func SearchHandler

func SearchHandler(newSearch, oldSearch http.Handler, percentage int, domain string) http.Handler

Types

type Handler

type Handler http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL