2022-08-17 10:57:03 +02:00
|
|
|
package registry
|
|
|
|
|
|
|
|
//
|
|
|
|
// Registers the `web_connectivity' experiment.
|
|
|
|
//
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ooni/probe-cli/v3/internal/engine/experiment/webconnectivity"
|
|
|
|
"github.com/ooni/probe-cli/v3/internal/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2022-08-31 12:44:46 +02:00
|
|
|
AllExperiments["web_connectivity"] = &Factory{
|
2022-08-17 10:57:03 +02:00
|
|
|
build: func(config any) model.ExperimentMeasurer {
|
|
|
|
return webconnectivity.NewExperimentMeasurer(
|
|
|
|
config.(webconnectivity.Config),
|
|
|
|
)
|
|
|
|
},
|
2022-08-17 12:17:52 +02:00
|
|
|
config: webconnectivity.Config{},
|
2022-08-17 10:57:03 +02:00
|
|
|
interruptible: false,
|
|
|
|
inputPolicy: model.InputOrQueryBackend,
|
|
|
|
}
|
|
|
|
}
|