Hide transitive fields from API responses in Website and Device structs
This commit is contained in:
@@ -15,10 +15,10 @@ const deviceFile = "devices.json"
|
||||
|
||||
type Device struct {
|
||||
Name string `json:"name"`
|
||||
IP string `json:"ip"`
|
||||
Interface string `json:"interface"`
|
||||
IP string `json:"-"`
|
||||
Interface string `json:"-"`
|
||||
Icon string `json:"icon"`
|
||||
Online bool `json:"online"`
|
||||
Online bool `json:"-"`
|
||||
}
|
||||
|
||||
func GetDevices() map[string]Device {
|
||||
|
||||
Reference in New Issue
Block a user