Use ooni/probe-engine 0.12.0+patches (#133)

* nettests/groups.go: remove redundant struct names

* go.mod go.sum: update deps except probe-engine

* Update to ooni/probe-engine@e768161f91

The API has changed. Methods that used to change bits of the session have
been removed. Now the session is more immutable than before.

As such, we need to completely fill the config before using it.

* Set IncludeCountry to always true

Co-authored-by: Arturo Filastò <arturo@filasto.net>
This commit is contained in:
Simone Basso 2020-06-04 11:19:38 +02:00 committed by GitHub
commit b4934b1619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 105 additions and 143 deletions

View file

@ -23,11 +23,13 @@ type Nettest interface {
}
// NewController creates a nettest controller
func NewController(nt Nettest, ctx *ooni.Context, res *database.Result) *Controller {
func NewController(
nt Nettest, ctx *ooni.Context, res *database.Result, sess *engine.Session) *Controller {
return &Controller{
Ctx: ctx,
nt: nt,
res: res,
Ctx: ctx,
nt: nt,
res: res,
Session: sess,
}
}
@ -35,6 +37,7 @@ func NewController(nt Nettest, ctx *ooni.Context, res *database.Result) *Control
// each nettest instance has one controller
type Controller struct {
Ctx *ooni.Context
Session *engine.Session
res *database.Result
nt Nettest
ntCount int