Start laying out the structure of gooni

This commit is contained in:
Arturo Filastò
2018-02-07 20:02:18 +02:00
commit 7327e1ff7f
22 changed files with 529 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package config
// Advanced settings
type Advanced struct {
IncludeCountry bool `json:"include_country"`
UseDomainFronting bool `json:"use_domain_fronting"`
}
+8
View File
@@ -0,0 +1,8 @@
package config
// AutomatedTesting settings
type AutomatedTesting struct {
Enabled bool `json:"enabled"`
EnabledTests []string `json:"enabled_tests"`
MonthlyAllowance string `json:"monthly_allowance"`
}
+29
View File
@@ -0,0 +1,29 @@
package config
type websiteSettings struct {
EnabledCategories []string `json:"enabled_categories"`
}
type instantMessagingSettings struct {
EnabledTests []string `json:"enabled_tests"`
}
type performanceSettings struct {
EnabledTests []string `json:"enabled_tests"`
NDTServer string `json:"ndt_server"`
NDTServerPort string `json:"ndt_server_port"`
DashServer string `json:"dash_server"`
DashServerPort string `json:"dash_server_port"`
}
type middleboxSettings struct {
EnabledTests []string `json:"enabled_tests"`
}
// NettestGroups related settings
type NettestGroups struct {
Websites websiteSettings `json:"websites"`
InstantMessaging instantMessagingSettings `json:"instant_messaging"`
Performance performanceSettings `json:"performance"`
Middlebox middleboxSettings `json:"middlebox"`
}
+8
View File
@@ -0,0 +1,8 @@
package config
// Notifications settings
type Notifications struct {
Enabled bool `json:"enabled"`
NotifyOnTestCompletion bool `json:"notify_on_test_completion"`
NotifyOnNews bool `json:"notify_on_news"`
}
+10
View File
@@ -0,0 +1,10 @@
package config
// Sharing settings
type Sharing struct {
IncludeIP bool `json:"include_ip"`
IncludeASN bool `json:"include_asn"`
IncludeGPS bool `json:"include_gps"`
UploadResults bool `json:"upload_results"`
SendCrashReports bool `json:"send_crash_reports"`
}