ooni-probe-cli/internal/registry/webconnectivity.go

24 lines
534 B
Go
Raw Permalink Normal View History

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() {
AllExperiments["web_connectivity"] = &Factory{
build: func(config any) model.ExperimentMeasurer {
return webconnectivity.NewExperimentMeasurer(
config.(webconnectivity.Config),
)
},
config: webconnectivity.Config{},
interruptible: false,
inputPolicy: model.InputOrQueryBackend,
}
}