28 lines
727 B
Go
28 lines
727 B
Go
|
package registry
|
||
|
|
||
|
//
|
||
|
// Registers the `web_connectivity@v0.5' experiment.
|
||
|
//
|
||
|
// See https://github.com/ooni/probe/issues/2237
|
||
|
//
|
||
|
|
||
|
import (
|
||
|
"github.com/ooni/probe-cli/v3/internal/experiment/webconnectivity"
|
||
|
"github.com/ooni/probe-cli/v3/internal/model"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
// Note: the name inserted into the table is the canonicalized experiment
|
||
|
// name though we advertise using `web_connectivity@v0.5`.
|
||
|
allexperiments["web_connectivity@v_0_5"] = &Factory{
|
||
|
build: func(config any) model.ExperimentMeasurer {
|
||
|
return webconnectivity.NewExperimentMeasurer(
|
||
|
config.(*webconnectivity.Config),
|
||
|
)
|
||
|
},
|
||
|
config: &webconnectivity.Config{},
|
||
|
interruptible: false,
|
||
|
inputPolicy: model.InputOrQueryBackend,
|
||
|
}
|
||
|
}
|