ooni-probe-cli/nettests/groups/groups.go

48 lines
1.0 KiB
Go
Raw Normal View History

2018-02-13 10:48:46 +01:00
package groups
import (
"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
)
// NettestGroup base structure
type NettestGroup struct {
Label string
Nettests []nettests.Nettest
}
2018-02-13 10:48:46 +01:00
// NettestGroups that can be run by the user
var NettestGroups = map[string]NettestGroup{
"websites": NettestGroup{
2018-02-13 10:48:46 +01:00
Label: "Websites",
Nettests: []nettests.Nettest{
websites.WebConnectivity{},
},
},
"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
},
"middlebox": NettestGroup{
Label: "Middleboxes",
Nettests: []nettests.Nettest{
middlebox.HTTPInvalidRequestLine{},
middlebox.HTTPHeaderFieldManipulation{},
},
2018-02-13 10:48:46 +01:00
},
"im": NettestGroup{
Label: "Instant Messaging",
Nettests: []nettests.Nettest{
im.FacebookMessenger{},
im.Telegram{},
im.WhatsApp{},
},
2018-02-13 10:48:46 +01:00
},
}