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

23 lines
492 B
Go
Raw Permalink Normal View History

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