DHT probe v0.0.1
This commit is contained in:
parent
84f7122a06
commit
60081acdfd
5 changed files with 459 additions and 175 deletions
22
internal/registry/dht.go
Normal file
22
internal/registry/dht.go
Normal 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,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue