Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigVersion = 1
ConfigVersion is the current version of the config
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced struct {
SendCrashReports bool `json:"send_crash_reports"`
}
Advanced settings
type Config ¶
type Config struct { // Private settings Comment string `json:"_"` Version int64 `json:"_version"` InformedConsent bool `json:"_informed_consent"` Sharing Sharing `json:"sharing"` Nettests Nettests `json:"nettests"` Advanced Advanced `json:"advanced"` // contains filtered or unexported fields }
Config for the OONI Probe installation
func ParseConfig ¶
ParseConfig returns config from JSON bytes.
func ReadConfig ¶
ReadConfig reads the configuration from the path
func (*Config) MaybeMigrate ¶
MaybeMigrate checks the current config version and the config file on disk and if necessary performs and upgrade of the configuration file.
Click to show internal directories.
Click to hide internal directories.