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

52 lines
1.1 KiB
Go
Raw Normal View History

2018-02-13 10:48:46 +01:00
package groups
import (
"github.com/openobservatory/gooni/nettests"
2018-02-13 16:16:23 +01:00
"github.com/openobservatory/gooni/nettests/performance"
2018-02-13 10:48:46 +01:00
"github.com/openobservatory/gooni/nettests/websites"
)
// NettestGroup base structure
type NettestGroup struct {
Label string
Nettests []nettests.Nettest
Summary func(s string) string
}
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{},
},
Summary: func(s string) string {
return "{}"
},
2018-02-13 10:48:46 +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{},
},
Summary: func(s string) string {
return "{}"
},
2018-02-13 10:48:46 +01:00
},
"middleboxes": NettestGroup{
2018-02-13 10:48:46 +01:00
Label: "Middleboxes",
Nettests: []nettests.Nettest{},
Summary: func(s string) string {
return "{}"
},
2018-02-13 10:48:46 +01:00
},
"im": NettestGroup{
2018-02-13 10:48:46 +01:00
Label: "Instant Messaging",
Nettests: []nettests.Nettest{},
Summary: func(s string) string {
return "{}"
},
2018-02-13 10:48:46 +01:00
},
}