abtest

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RelcalTestCookieAspect = "dsa-release-calendar"
	RelcalNewExit          = "exit-new-relcal"
)

Variables

This section is empty.

Functions

func Handler

func Handler(abTest bool, newHandler, old http.Handler, percentage int, aspectID, domain, exitNew string) http.Handler

Handler returns the relevant handler on the basis of the supplied parameters. It delegates to both abTestHandler and abTestPurgeHandler on the basis the abTest parameter, but it is really an encapsulation of the decision-making process as to what handler is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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