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

23 lines
469 B
Go
Raw Normal View History

package registry
//
// Registers the `tcpping' experiment.
//
import (
"github.com/ooni/probe-cli/v3/internal/engine/experiment/tcpping"
"github.com/ooni/probe-cli/v3/internal/model"
)
func init() {
AllExperiments["tcpping"] = &Factory{
build: func(config interface{}) model.ExperimentMeasurer {
return tcpping.NewExperimentMeasurer(
*config.(*tcpping.Config),
)
},
config: &tcpping.Config{},
inputPolicy: model.InputStrictlyRequired,
}
}