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 {
Autoupdater *struct {
Enabled bool `json:"enabled"`
Branch string `json:"branch"`
Autoupdater struct {
Enabled bool `json:"enabled,omitempty"`
Branch string `json:"branch,omitempty"`
} `json:"autoupdater,omitempty"`
BatmanAdv *struct {
Version string `json:"version"`
Compat int `json:"compat"`
BatmanAdv struct {
Version string `json:"version,omitempty"`
Compat int `json:"compat,omitempty"`
} `json:"batman-adv,omitempty"`
Fastd *struct {
Enabled bool `json:"enabled"`
Version string `json:"version"`
Fastd struct {
Enabled bool `json:"enabled,omitempty"`
Version string `json:"version,omitempty"`
} `json:"fastd,omitempty"`
Firmware *struct {
Base string `json:"base"`
Release string `json:"release"`
Firmware struct {
Base string `json:"base,omitempty"`
Release string `json:"release,omitempty"`
} `json:"firmware,omitempty"`
StatusPage *struct {
StatusPage struct {
Api int `json:"api"`
} `json:"status-page,omitempty"`
}