Documentation ¶
Index ¶
- type Client
- func (c *Client) GetClientByPort(switchMac string, port float64) (*NetworkClient, error)
- func (c *Client) GetClients() ([]NetworkClient, error)
- func (c *Client) GetController() (*Controller, error)
- func (c *Client) GetDevices() ([]Device, error)
- func (c *Client) GetPorts(switchMac string) ([]Port, error)
- func (c *Client) IsLoggedIn() (bool, error)
- func (c *Client) Login() error
- type Controller
- type Device
- type NetworkClient
- type Port
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *config.Config SiteId string // contains filtered or unexported fields }
func (*Client) GetClientByPort ¶
func (c *Client) GetClientByPort(switchMac string, port float64) (*NetworkClient, error)
gets clients by switch mac address
func (*Client) GetController ¶
func (c *Client) GetController() (*Controller, error)
func (*Client) GetDevices ¶
func (*Client) IsLoggedIn ¶
type Controller ¶
type Device ¶
type Device struct { Name string `json:"name"` Type string `json:"type"` Mac string `json:"mac"` Model string `json:"model"` Version string `json:"version"` Ip string `json:"ip"` CpuUtil float64 `json:"cpuUtil"` MemUtil float64 `json:"memUtil"` Uptime float64 `json:"uptimeLong"` NeedUpgrade bool `json:"needUpgrade"` Download float64 `json:"download"` Upload float64 `json:"upload"` TxRate float64 `json:"txRate"` RxRate float64 `json:"rxRate"` PoeRemain float64 `json:"poeRemain"` Ports []Port `json:"ports"` }
type NetworkClient ¶
type NetworkClient struct { Name string `json:"name"` HostName string `json:"hostName"` Mac string `json:"mac"` Port float64 `json:"port"` Ip string `json:"ip"` VlanId float64 `json:"vid"` ApName string `json:"apName"` Wireless bool `json:"wireless"` SwitchMac string `json:"switchMac"` Vendor string `json:"vendor"` Activity float64 `json:"activity"` SignalLevel float64 `json:"signalLevel"` WifiMode float64 `json:"wifiMode"` Ssid string `json:"ssid"` Rssi float64 `json:"rssi"` TrafficDown float64 `json:"trafficDown"` TrafficUp float64 `json:"trafficUp"` RxRate float64 `json:"rxRate"` TxRate float64 `json:"txRate"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.