ooni-probe-cli/internal/registry/telegram.go

24 lines
480 B
Go
Raw Permalink Normal View History

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