Add an experimental DHT/Bittorrent probe to miniooni
This commit is contained in:
parent
a0dc65641d
commit
faf5c0748c
8 changed files with 1007 additions and 8 deletions
22
internal/registry/bittorrent.go
Normal file
22
internal/registry/bittorrent.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package registry
|
||||
|
||||
//
|
||||
// Registers the `dnsping' experiment.
|
||||
//
|
||||
|
||||
import (
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/experiment/bittorrent"
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
AllExperiments["bittorrent"] = &Factory{
|
||||
build: func(config interface{}) model.ExperimentMeasurer {
|
||||
return bittorrent.NewExperimentMeasurer(
|
||||
*config.(*bittorrent.Config),
|
||||
)
|
||||
},
|
||||
config: &bittorrent.Config{},
|
||||
inputPolicy: model.InputOrStaticDefault,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue