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

23 lines
469 B
Go
Raw Permalink Normal View History

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