Implement most of the measurement & result DB workflow

This commit is contained in:
Arturo Filastò
2018-03-20 12:38:33 +01:00
parent 6a70fe7da1
commit e0bb4000e9
4 changed files with 120 additions and 52 deletions
+24 -5
View File
@@ -6,27 +6,46 @@ import (
"github.com/openobservatory/gooni/nettests/websites"
)
// NettestGroup base structure
type NettestGroup struct {
Label string
Nettests []nettests.Nettest
Summary func(s string) string
}
// NettestGroups that can be run by the user
var NettestGroups = map[string]nettests.NettestGroup{
"websites": nettests.NettestGroup{
var NettestGroups = map[string]NettestGroup{
"websites": NettestGroup{
Label: "Websites",
Nettests: []nettests.Nettest{
websites.WebConnectivity{},
},
Summary: func(s string) string {
return "{}"
},
},
"performance": nettests.NettestGroup{
"performance": NettestGroup{
Label: "Performance",
Nettests: []nettests.Nettest{
performance.Dash{},
performance.NDT{},
},
Summary: func(s string) string {
return "{}"
},
},
"middleboxes": nettests.NettestGroup{
"middleboxes": NettestGroup{
Label: "Middleboxes",
Nettests: []nettests.Nettest{},
Summary: func(s string) string {
return "{}"
},
},
"im": nettests.NettestGroup{
"im": NettestGroup{
Label: "Instant Messaging",
Nettests: []nettests.Nettest{},
Summary: func(s string) string {
return "{}"
},
},
}