mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:00 -04:00
Format code with gofmt
This commit is contained in:
@@ -369,7 +369,7 @@ func (u *InputUnifi) setControllerDefaults(c *Controller) *Controller { //nolint
|
||||
if c.SaveTraffic == nil {
|
||||
c.SaveTraffic = u.Default.SaveTraffic
|
||||
}
|
||||
|
||||
|
||||
if c.SaveIDs == nil {
|
||||
c.SaveIDs = u.Default.SaveIDs
|
||||
}
|
||||
|
||||
@@ -18,17 +18,17 @@ const (
|
||||
|
||||
// Console represents a UniFi console from the remote API.
|
||||
type Console struct {
|
||||
ID string `json:"id"`
|
||||
IPAddress string `json:"ipAddress"`
|
||||
Type string `json:"type"`
|
||||
Owner bool `json:"owner"`
|
||||
IsBlocked bool `json:"isBlocked"`
|
||||
ID string `json:"id"`
|
||||
IPAddress string `json:"ipAddress"`
|
||||
Type string `json:"type"`
|
||||
Owner bool `json:"owner"`
|
||||
IsBlocked bool `json:"isBlocked"`
|
||||
ReportedState struct {
|
||||
Name string `json:"name"`
|
||||
Hostname string `json:"hostname"`
|
||||
IP string `json:"ip"`
|
||||
State string `json:"state"`
|
||||
Mac string `json:"mac"`
|
||||
Name string `json:"name"`
|
||||
Hostname string `json:"hostname"`
|
||||
IP string `json:"ip"`
|
||||
State string `json:"state"`
|
||||
Mac string `json:"mac"`
|
||||
} `json:"reportedState"`
|
||||
ConsoleName string // Derived field: name from reportedState
|
||||
}
|
||||
@@ -273,7 +273,7 @@ func (u *InputUnifi) discoverRemoteControllers(apiKey string) ([]*Controller, er
|
||||
|
||||
// Ensure defaults are set before calling setControllerDefaults
|
||||
u.setDefaults(&u.Default)
|
||||
|
||||
|
||||
// Copy defaults
|
||||
controller = u.setControllerDefaults(controller)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user