Documentation
¶
Overview ¶
Package run contains code to run other experiments.
This code is currently alpha.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExperimentMeasurer ¶
func NewExperimentMeasurer(config Config) model.ExperimentMeasurer
NewExperimentMeasurer creates a new model.ExperimentMeasurer implementing the run experiment.
Types ¶
type Measurer ¶
type Measurer struct{}
Measurer runs the measurement.
func (Measurer) ExperimentName ¶
ExperimentName implements ExperimentMeasurer.ExperimentName.
func (Measurer) ExperimentVersion ¶
ExperimentVersion implements ExperimentMeasurer.ExperimentVersion.
func (Measurer) GetSummaryKeys ¶
func (Measurer) GetSummaryKeys(*model.Measurement) (interface{}, error)
GetSummaryKeys implements ExperimentMeasurer.GetSummaryKeys
func (Measurer) Run ¶
func (Measurer) Run( ctx context.Context, sess model.ExperimentSession, measurement *model.Measurement, callbacks model.ExperimentCallbacks, ) error
Run implements ExperimentMeasurer.ExperimentVersion.
type StructuredInput ¶
type StructuredInput struct {
// Annotations contains extra annotations to add to the
// final measurement.
Annotations map[string]string `json:"annotations"`
// DNSCheck contains settings for the dnscheck experiment.
DNSCheck dnscheck.Config `json:"dnscheck"`
// URLGetter contains settings for the urlgetter experiment.
URLGetter urlgetter.Config `json:"urlgetter"`
// Name is the name of the experiment to run.
Name string `json:"name"`
// Input is the input for this experiment.
Input string `json:"input"`
}
StructuredInput contains structured input for this experiment.
Click to show internal directories.
Click to hide internal directories.