Remove indirection of embedded structs in Software

This commit is contained in:
Julian Kornberger 2016-12-15 10:43:07 +01:00
parent 15487b3d1b
commit 3a6fd20bf3
1 changed files with 13 additions and 13 deletions

View File

@ -42,23 +42,23 @@ type Location struct {
} }
type Software struct { type Software struct {
Autoupdater *struct { Autoupdater struct {
Enabled bool `json:"enabled"` Enabled bool `json:"enabled,omitempty"`
Branch string `json:"branch"` Branch string `json:"branch,omitempty"`
} `json:"autoupdater,omitempty"` } `json:"autoupdater,omitempty"`
BatmanAdv *struct { BatmanAdv struct {
Version string `json:"version"` Version string `json:"version,omitempty"`
Compat int `json:"compat"` Compat int `json:"compat,omitempty"`
} `json:"batman-adv,omitempty"` } `json:"batman-adv,omitempty"`
Fastd *struct { Fastd struct {
Enabled bool `json:"enabled"` Enabled bool `json:"enabled,omitempty"`
Version string `json:"version"` Version string `json:"version,omitempty"`
} `json:"fastd,omitempty"` } `json:"fastd,omitempty"`
Firmware *struct { Firmware struct {
Base string `json:"base"` Base string `json:"base,omitempty"`
Release string `json:"release"` Release string `json:"release,omitempty"`
} `json:"firmware,omitempty"` } `json:"firmware,omitempty"`
StatusPage *struct { StatusPage struct {
Api int `json:"api"` Api int `json:"api"`
} `json:"status-page,omitempty"` } `json:"status-page,omitempty"`
} }