ooni-probe-cli/internal/nettests/groups.go
Simone Basso a58dff3050
refactor: nettests is now an internal package (#165)
I'm moving everything into internal packages since this ain't a library.

While there, remove typo that was causing a build breakage.
2020-11-13 17:14:26 +01:00

47 lines
761 B
Go

package nettests
// NettestGroup base structure
type NettestGroup struct {
Label string
Nettests []Nettest
}
// NettestGroups that can be run by the user
var NettestGroups = map[string]NettestGroup{
"websites": {
Label: "Websites",
Nettests: []Nettest{
WebConnectivity{},
},
},
"performance": {
Label: "Performance",
Nettests: []Nettest{
Dash{},
NDT{},
},
},
"middlebox": {
Label: "Middleboxes",
Nettests: []Nettest{
HTTPInvalidRequestLine{},
HTTPHeaderFieldManipulation{},
},
},
"im": {
Label: "Instant Messaging",
Nettests: []Nettest{
FacebookMessenger{},
Telegram{},
WhatsApp{},
},
},
"circumvention": {
Label: "Circumvention Tools",
Nettests: []Nettest{
Psiphon{},
Tor{},
},
},
}