feat: tlsmiddlebox experiment (#817)
See https://github.com/ooni/probe/issues/2124
This commit is contained in:
parent
b78b9aca51
commit
f2b88ddb4a
24 changed files with 1670 additions and 0 deletions
22
internal/registry/tlsmiddlebox.go
Normal file
22
internal/registry/tlsmiddlebox.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package registry
|
||||
|
||||
//
|
||||
// Registers the `tlsmiddlebox' experiment.
|
||||
//
|
||||
|
||||
import (
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/experiment/tlsmiddlebox"
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
AllExperiments["tlsmiddlebox"] = &Factory{
|
||||
build: func(config interface{}) model.ExperimentMeasurer {
|
||||
return tlsmiddlebox.NewExperimentMeasurer(
|
||||
*config.(*tlsmiddlebox.Config),
|
||||
)
|
||||
},
|
||||
config: &tlsmiddlebox.Config{},
|
||||
inputPolicy: model.InputStrictlyRequired,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue