Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
IngestURL string `json:"ingest_url"`
UploadToken string `json:"upload_token"`
ITContactEmail string `json:"it_contact_email"`
PerTestTimeoutSeconds int `json:"per_test_timeout_seconds"`
UploadTimeoutSeconds int `json:"upload_timeout_seconds"`
UploadRetries int `json:"upload_retries"`
OmitWifiSSID bool `json:"omit_wifi_ssid"`
UDPProbeMagic string `json:"udp_probe_magic"`
POPs []POP `json:"pops"`
}
func Load ¶
Load merges baked-in defaults with build-time ldflags overrides and an optional sidecar JSON file at sidecarPath. Empty sidecarPath means defaults + ldflags overrides only.
Precedence (lowest → highest):
- Embedded defaults.json (non-secret tunables)
- defaults.FallbackPOPsJSON (build-time injected fallback POP list)
- defaults.{UploadToken, IngestURL, ITContactEmail} (build-time injected)
- Sidecar JSON file at sidecarPath, if present
Directories
¶
| Path | Synopsis |
|---|---|
|
Package defaults holds build-time-injected configuration values.
|
Package defaults holds build-time-injected configuration values. |
|
Package identity persists the user's name and email across runs so the identify screen can pre-fill the form.
|
Package identity persists the user's name and email across runs so the identify screen can pre-fill the form. |
|
Package popsfetch retrieves the live POP list from the ingest service.
|
Package popsfetch retrieves the live POP list from the ingest service. |
Click to show internal directories.
Click to hide internal directories.