feat: port-filtering experiment (#891)

Part of https://github.com/ooni/probe/issues/2005
This commit is contained in:
DecFox 2022-09-14 23:24:43 +05:30 committed by GitHub
commit d6a362d96f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 452 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package registry
//
// Registers the 'portfiltering' experiment
//
import (
"github.com/ooni/probe-cli/v3/internal/engine/experiment/portfiltering"
"github.com/ooni/probe-cli/v3/internal/model"
)
func init() {
AllExperiments["portfiltering"] = &Factory{
build: func(config any) model.ExperimentMeasurer {
return portfiltering.NewExperimentMeasurer(
config.(portfiltering.Config),
)
},
config: portfiltering.Config{},
interruptible: false,
inputPolicy: model.InputNone,
}
}