Add support for generating the Measurement summary

To generate the result summary we need to refactor how the SummaryMap
works
This commit is contained in:
Arturo Filastò
2018-03-23 13:17:39 +01:00
parent 00859e87a6
commit f5ff3ac87a
3 changed files with 56 additions and 4 deletions
+7
View File
@@ -37,6 +37,12 @@ type IMSummary struct {
Detected bool
}
// WebsitesSummary is the summary for the websites test
type WebsitesSummary struct {
Tested uint
Blocked uint
}
// NettestGroups that can be run by the user
var NettestGroups = map[string]NettestGroup{
"websites": NettestGroup{
@@ -45,6 +51,7 @@ var NettestGroups = map[string]NettestGroup{
websites.WebConnectivity{},
},
Summary: func(m database.SummaryMap) (string, error) {
// XXX to generate this I need to create the summary map as a list
return "{}", nil
},
},