science

package
v0.0.0-...-b1f166a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorrectnessTest

type CorrectnessTest struct {
	ControlURL    string
	ExperimentURL string
}

CorrectnessTest is the interface to run correctness tests with

func (CorrectnessTest) ServeHTTP

func (c CorrectnessTest) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LoadTest

type LoadTest struct {
	URL string
}

LoadTest is the interface to run load tests with

func (LoadTest) ServeHTTP

func (l LoadTest) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Results

type Results struct {
	Reqs int
	// Only used for correctness tests
	Codes   map[int]map[int]int
	Mutex   *sync.Mutex
	Diffs   int
	DiffLog io.ReadWriter
}

Results records results from science

var Res Results

Res represents the outcome of science

Jump to

Keyboard shortcuts

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