Documentation
¶
Overview ¶
Package example contains a simple example of experiment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExperimentMeasurer ¶ added in v0.8.0
func NewExperimentMeasurer(config Config, testName string) model.ExperimentMeasurer
NewExperimentMeasurer creates a new ExperimentMeasurer.
Types ¶
type Config ¶
type Config struct {
Message string `ooni:"Message to emit at test completion"`
ReturnError bool `ooni:"Toogle to return a mocked error"`
SleepTime int64 `ooni:"Amount of time to sleep for"`
}
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.
Click to show internal directories.
Click to hide internal directories.