Refactor nettests into top tree
This commit is contained in:
parent
d6d2490d2c
commit
b20af107dc
8 changed files with 102 additions and 66 deletions
39
nettests/groups.go
Normal file
39
nettests/groups.go
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package nettests
|
||||
|
||||
// NettestGroup base structure
|
||||
type NettestGroup struct {
|
||||
Label string
|
||||
Nettests []Nettest
|
||||
}
|
||||
|
||||
// NettestGroups that can be run by the user
|
||||
var NettestGroups = map[string]NettestGroup{
|
||||
"websites": NettestGroup{
|
||||
Label: "Websites",
|
||||
Nettests: []Nettest{
|
||||
WebConnectivity{},
|
||||
},
|
||||
},
|
||||
"performance": NettestGroup{
|
||||
Label: "Performance",
|
||||
Nettests: []Nettest{
|
||||
Dash{},
|
||||
NDT{},
|
||||
},
|
||||
},
|
||||
"middlebox": NettestGroup{
|
||||
Label: "Middleboxes",
|
||||
Nettests: []Nettest{
|
||||
HTTPInvalidRequestLine{},
|
||||
HTTPHeaderFieldManipulation{},
|
||||
},
|
||||
},
|
||||
"im": NettestGroup{
|
||||
Label: "Instant Messaging",
|
||||
Nettests: []Nettest{
|
||||
FacebookMessenger{},
|
||||
Telegram{},
|
||||
WhatsApp{},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Reference in a new issue