Implement most of the measurement & result DB workflow
This commit is contained in:
@@ -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 "{}"
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user