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