DHT probe v0.0.1

This commit is contained in:
ooni noob 2022-11-22 17:05:35 +01:00
commit 60081acdfd
5 changed files with 459 additions and 175 deletions

22
internal/registry/dht.go Normal file
View file

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