Versions in this module Expand all Collapse all v1 v1.0.2 Feb 26, 2024 v1.0.1 Feb 26, 2024 Changes in this version + func InsecureHTTPClient(timeout time.Duration) *http.Client + type Alarm struct + APMAC net.HardwareAddr + APName string + Archived bool + DateTime time.Time + ID string + Key string + Message string + SiteID string + Subsystem string + func (a *Alarm) UnmarshalJSON(b []byte) error + type Client struct + UserAgent string + func NewClient(addr string, client *http.Client) (*Client, error) + func (c *Client) Alarms(siteName string) ([]*Alarm, error) + func (c *Client) Devices(siteName string) ([]*Device, error) + func (c *Client) Login(username string, password string) error + func (c *Client) Sites() ([]*Site, error) + func (c *Client) Stations(siteName string) ([]*Station, error) + type Device struct + Adopted bool + ID string + InformIP net.IP + InformURL *url.URL + Model string + NICs []*NIC + Name string + Radios []*Radio + Serial string + SiteID string + Stats *DeviceStats + Uptime time.Duration + Version string + func (d *Device) UnmarshalJSON(b []byte) error + type DeviceStats struct + All *WirelessStats + Guest *WirelessStats + TotalBytes float64 + Uplink *WiredStats + User *WirelessStats + func (s *DeviceStats) String() string + type NIC struct + MAC net.HardwareAddr + Name string + type Radio struct + BuiltInAntenna bool + BuiltInAntennaGain int + MaxTXPower int + MinTXPower int + Name string + Radio string + Stats *RadioStationsStats + type RadioStationsStats struct + NumberGuestStations int + NumberStations int + NumberUserStations int + type Site struct + Description string + ID string + Name string + NumAPs int + NumStations int + Role string + type Station struct + APMAC net.HardwareAddr + AssociationTime time.Time + Channel int + FirstSeen time.Time + Hostname string + ID string + IP net.IP + IdleTime time.Duration + IsWired bool + LastSeen time.Time + MAC net.HardwareAddr + Name string + Noise int + RSSI int + RoamCount int + SiteID string + Stats *StationStats + Uptime time.Duration + UserID string + func (s *Station) UnmarshalJSON(b []byte) error + type StationStats struct + ReceiveBytes int64 + ReceivePackets int64 + ReceiveRate int + TransmitBytes int64 + TransmitPackets int64 + TransmitPower int + TransmitRate int + type WiredStats struct + ReceiveBytes float64 + ReceivePackets float64 + TransmitBytes float64 + TransmitPackets float64 + func (s *WiredStats) String() string + type WirelessStats struct + ReceiveBytes float64 + ReceivePackets float64 + TransmitBytes float64 + TransmitDropped float64 + TransmitPackets float64 + func (s *WirelessStats) String() string