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

23 lines
474 B
Go
Raw Permalink Normal View History

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