example

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package example contains a simple example of experiment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExperiment

func NewExperiment(
	sess *session.Session, config Config,
) *experiment.Experiment

NewExperiment creates a new experiment.

This is the function that you call to create an instance of this experiment. Once you have created an instance, you can use directly the generic experiment API.

Types

type Config

type Config struct {
	SleepTime time.Duration
}

Config contains the experiment config.

This contains all the settings that user can set to modify the behaviour of this experiment.

type TestKeys

type TestKeys struct {
	Success bool `json:"success"`
}

TestKeys contains the experiment's result.

This is what will end up into the Measurement.TestKeys field when you run this experiment. In other words, the variables in this struct will be the particular results of this experiment.

Jump to

Keyboard shortcuts

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