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

23 lines
467 B
Go
Raw Normal View History

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