23 lines
433 B
Go
23 lines
433 B
Go
package registry
|
|
|
|
//
|
|
// Registers the `tor' experiment.
|
|
//
|
|
|
|
import (
|
|
"github.com/ooni/probe-cli/v3/internal/engine/experiment/tor"
|
|
"github.com/ooni/probe-cli/v3/internal/model"
|
|
)
|
|
|
|
func init() {
|
|
allexperiments["tor"] = &Factory{
|
|
build: func(config interface{}) model.ExperimentMeasurer {
|
|
return tor.NewExperimentMeasurer(
|
|
*config.(*tor.Config),
|
|
)
|
|
},
|
|
config: &tor.Config{},
|
|
inputPolicy: model.InputNone,
|
|
}
|
|
}
|