Versions in this module Expand all Collapse all v0 v0.1.0 Jan 4, 2021 Changes in this version + var DefaultAuthFile = filepath.Join(os.Getenv("HOME"), ".unifi-auth") + type API struct + func NewAPI(as AuthStore) (*API, error) + func (api *API) EnableWirelessNetwork(site, id string, enable bool) error + func (api *API) ListClients(site string) ([]Client, error) + func (api *API) ListWirelessNetworks(site string) ([]WirelessNetwork, error) + func (api *API) WriteConfig() error + type Auth struct + ControllerHost string + Cookies []*http.Cookie + Password string + Username string + type AuthStore interface + Load func() (*Auth, error) + Save func(*Auth) error + func FileAuthStore(filename string, checkPerm bool) AuthStore + type Client struct + Anomalies int + ApMac string + AssocTime int + Authorized bool + Bssid string + BytesR int + Ccq int + Channel int + DhcpendTime int + Essid string + FirstSeen int + Hostname string + ID string + IP string + Idletime int + Is11R bool + IsGuest bool + IsGuestByUap bool + IsWired bool + LastSeen time.Time + LastSeenByUap int + LatestAssocTime int + MAC string + Mac string + Name string + Noise int + Oui string + PowersaveEnabled bool + QosPolicyApplied bool + Radio string + RadioName string + RadioProto string + Rssi int + RxBytes int + RxBytesR int + RxPackets int + RxRate int + Satisfaction int + Signal int + SiteID string + TxBytes int64 + TxBytesR int + TxPackets int + TxPower int + TxRate int + TxRetries int + Uptime int + UptimeByUap int + UserID string + Vlan int + WifiTxAttempts int + Wired bool + func (c *Client) UnmarshalJSON(data []byte) error + type WirelessNetwork struct + Enabled bool + Guest bool + ID string + Name string + Security string + WPAMode string