2018-02-13 10:48:46 +01:00
|
|
|
package groups
|
|
|
|
|
|
|
|
import (
|
2018-05-03 14:59:55 +02:00
|
|
|
"github.com/ooni/probe-cli/nettests"
|
|
|
|
"github.com/ooni/probe-cli/nettests/im"
|
|
|
|
"github.com/ooni/probe-cli/nettests/middlebox"
|
|
|
|
"github.com/ooni/probe-cli/nettests/performance"
|
|
|
|
"github.com/ooni/probe-cli/nettests/websites"
|
2018-02-13 10:48:46 +01:00
|
|
|
)
|
|
|
|
|
2018-03-20 12:38:33 +01:00
|
|
|
// NettestGroup base structure
|
|
|
|
type NettestGroup struct {
|
|
|
|
Label string
|
|
|
|
Nettests []nettests.Nettest
|
2018-05-22 02:34:26 +02:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:48:46 +01:00
|
|
|
// NettestGroups that can be run by the user
|
2018-03-20 12:38:33 +01:00
|
|
|
var NettestGroups = map[string]NettestGroup{
|
|
|
|
"websites": NettestGroup{
|
2018-02-13 10:48:46 +01:00
|
|
|
Label: "Websites",
|
|
|
|
Nettests: []nettests.Nettest{
|
|
|
|
websites.WebConnectivity{},
|
|
|
|
},
|
|
|
|
},
|
2018-03-20 12:38:33 +01:00
|
|
|
"performance": NettestGroup{
|
2018-02-13 16:16:23 +01:00
|
|
|
Label: "Performance",
|
|
|
|
Nettests: []nettests.Nettest{
|
2018-03-14 14:44:37 +01:00
|
|
|
performance.Dash{},
|
2018-02-13 16:16:23 +01:00
|
|
|
performance.NDT{},
|
|
|
|
},
|
2018-02-13 10:48:46 +01:00
|
|
|
},
|
2018-03-22 15:22:29 +01:00
|
|
|
"middlebox": NettestGroup{
|
2018-03-21 12:18:45 +01:00
|
|
|
Label: "Middleboxes",
|
|
|
|
Nettests: []nettests.Nettest{
|
|
|
|
middlebox.HTTPInvalidRequestLine{},
|
|
|
|
middlebox.HTTPHeaderFieldManipulation{},
|
|
|
|
},
|
2018-02-13 10:48:46 +01:00
|
|
|
},
|
2018-03-20 12:38:33 +01:00
|
|
|
"im": NettestGroup{
|
2018-03-21 12:18:45 +01:00
|
|
|
Label: "Instant Messaging",
|
|
|
|
Nettests: []nettests.Nettest{
|
|
|
|
im.FacebookMessenger{},
|
|
|
|
im.Telegram{},
|
|
|
|
im.WhatsApp{},
|
|
|
|
},
|
2018-02-13 10:48:46 +01:00
|
|
|
},
|
|
|
|
}
|