Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Mac string `json:"mac"` Name string `json:"name"` HostName string `json:"hostName,omitempty"` DeviceType string `json:"deviceType"` IP string `json:"ip"` ConnectType uint `json:"connectType"` ConnectDevType string `json:"connectDevType"` Wireless bool `json:"wireless"` Ssid string `json:"ssid,omitempty"` SignalLevel uint `json:"signalLevel,omitempty"` SignalRank uint `json:"signalRank,omitempty"` WifiMode uint `json:"wifiMode,omitempty"` ApName string `json:"apName,omitempty"` ApMac string `json:"apMac,omitempty"` RadioID uint `json:"radioId,omitempty"` Channel uint `json:"channel,omitempty"` RxRate uint `json:"rxRate,omitempty"` TxRate uint `json:"txRate,omitempty"` PowerSave bool `json:"powerSave,omitempty"` Rssi int `json:"rssi,omitempty"` Activity uint `json:"activity"` TrafficDown uint `json:"trafficDown"` TrafficUp uint `json:"trafficUp"` Uptime uint `json:"uptime"` LastSeen uint `json:"lastSeen"` AuthStatus uint `json:"authStatus"` Guest bool `json:"guest"` Active bool `json:"active"` Manager bool `json:"manager"` DownPacket uint `json:"downPacket"` UpPacket uint `json:"upPacket"` SwitchMac string `json:"switchMac,omitempty"` SwitchName string `json:"switchName,omitempty"` Vid uint `json:"vid,omitempty"` NetworkName string `json:"networkName,omitempty"` Dot1XVlan uint `json:"dot1xVlan,omitempty"` Port uint `json:"port,omitempty"` IPSetting struct { UseFixedAddr bool `json:"useFixedAddr"` NetID string `json:"netId"` IP string `json:"ip"` } `json:"ipSetting"` RateLimit struct { RateLimitID string `json:"rateLimitId"` Enable bool `json:"enable"` UpEnable bool `json:"upEnable"` UpUnit uint `json:"upUnit"` UpLimit uint `json:"upLimit"` DownEnable bool `json:"downEnable"` DownUnit uint `json:"downUnit"` DownLimit uint `json:"downLimit"` } `json:"rateLimit"` }
type Clients ¶
type Clients struct { Paged Data []Client `json:"data"` ClientStat struct { Total int `json:"total"` Wireless int `json:"wireless"` Wired int `json:"wired"` Num2G int `json:"num2g"` Num5G int `json:"num5g"` Num5G2 int `json:"num5g2"` NumUser int `json:"numUser"` NumGuest int `json:"numGuest"` Num2GUser int `json:"num2gUser"` Num5GUser int `json:"num5gUser"` Num5G2User int `json:"num5g2User"` Num2GGuest int `json:"num2gGuest"` Num5GGuest int `json:"num5gGuest"` Num5G2Guest int `json:"num5g2Guest"` } `json:"clientStat"` }
type Device ¶
type Device struct { Type string `json:"type"` Mac string `json:"mac"` Name string `json:"name"` Model string `json:"model"` ModelVersion string `json:"modelVersion"` CompoundModel string `json:"compoundModel"` ShowModel string `json:"showModel"` FirmwareVersion string `json:"firmwareVersion"` Version string `json:"version"` HwVersion string `json:"hwVersion"` Status int `json:"status"` StatusCategory int `json:"statusCategory"` Site string `json:"site"` Compatible int `json:"compatible"` Sn string `json:"sn"` PortNum int `json:"portNum"` LedSetting int `json:"ledSetting"` SnmpSeting struct { Location string `json:"location"` Contact string `json:"contact"` } `json:"snmpSeting"` IptvSetting struct { IgmpEnable bool `json:"igmpEnable"` IgmpVersion string `json:"igmpVersion"` } `json:"iptvSetting"` HwOffloadEnable bool `json:"hwOffloadEnable"` LldpEnable bool `json:"lldpEnable"` EchoServer string `json:"echoServer"` IP string `json:"ip"` Uptime string `json:"uptime"` UptimeLong int `json:"uptimeLong"` CPUUtil int `json:"cpuUtil"` MemUtil int `json:"memUtil"` LastSeen int64 `json:"lastSeen"` PortStats []struct { Port int `json:"port"` Name string `json:"name"` Type int `json:"type"` Mode int `json:"mode"` Status int `json:"status"` Rx int `json:"rx"` RxPkt int `json:"rxPkt"` RxPktRate int `json:"rxPktRate"` RxRate int `json:"rxRate"` Tx int `json:"tx"` TxPkt int `json:"txPkt"` TxPktRate int `json:"txPktRate"` TxRate int `json:"txRate"` InternetState int `json:"internetState,omitempty"` IP string `json:"ip,omitempty"` Speed int `json:"speed,omitempty"` Duplex int `json:"duplex,omitempty"` Proto string `json:"proto,omitempty"` WanIpv6Comptent int `json:"wanIpv6Comptent,omitempty"` WanPortIpv6Config struct { Enable int `json:"enable"` Addr string `json:"addr"` Gateway string `json:"gateway"` PriDNS string `json:"priDns"` SndDNS string `json:"sndDns"` InternetState int `json:"internetState"` } `json:"wanPortIpv6Config,omitempty"` WanPortIpv4Config struct { IP string `json:"ip"` Gateway string `json:"gateway"` Gateway2 string `json:"gateway2"` PriDNS string `json:"priDns"` SndDNS string `json:"sndDns"` PriDNS2 string `json:"priDns2"` SndDNS2 string `json:"sndDns2"` } `json:"wanPortIpv4Config,omitempty"` } `json:"portStats"` LanClientStats []struct { LanName string `json:"lanName"` Vlan int `json:"vlan"` IP string `json:"ip"` Rx int `json:"rx"` Tx int `json:"tx"` ClientNum int `json:"clientNum"` LanPortIpv6Config struct { Addr string `json:"addr"` } `json:"lanPortIpv6Config"` } `json:"lanClientStats"` NeedUpgrade bool `json:"needUpgrade"` Download int64 `json:"download"` Upload int64 `json:"upload"` NetworkComptent int `json:"networkComptent"` }
type LoginStatus ¶
type LoginStatus struct {
Login bool `json:"login"`
}
type Network ¶ added in v0.0.5
type Network struct { ID string `json:"id"` Site string `json:"site"` Name string `json:"name"` Purpose string `json:"purpose"` InterfaceIds []string `json:"interfaceIds"` Vlan int `json:"vlan"` GatewaySubnet string `json:"gatewaySubnet"` Domain string `json:"domain,omitempty"` IgmpSnoopEnable bool `json:"igmpSnoopEnable"` Portal bool `json:"portal"` AccessControlRule bool `json:"accessControlRule"` RateLimit bool `json:"rateLimit"` AllLan bool `json:"allLan"` Primary bool `json:"primary"` DhcpGuard struct { Enable bool `json:"enable"` DhcpSvr1 string `json:"dhcpSvr1"` } `json:"dhcpGuard,omitempty"` DhcpSettings struct { Enable bool `json:"enable"` IpaddrStart string `json:"ipaddrStart"` IpaddrEnd string `json:"ipaddrEnd"` IPRangeStart int64 `json:"ipRangeStart"` IPRangeEnd int64 `json:"ipRangeEnd"` Dhcpns string `json:"dhcpns"` PriDNS string `json:"priDns"` SndDNS string `json:"sndDns"` Leasetime int `json:"leasetime"` Option138 string `json:"option138"` } `json:"dhcpSettings,omitempty"` LanNetworkIpv6Config struct { Proto string `json:"proto"` Enable int `json:"enable"` } `json:"lanNetworkIpv6Config,omitempty"` }
type PageInterface ¶
type Paged ¶
type Paged struct { PageInterface TotalRows int `json:"totalRows"` CurrentPage int `json:"currentPage"` CurrentSize int `json:"currentSize"` }
func (*Paged) GetCurrentPage ¶
func (*Paged) GetTotalRows ¶
type UsersCurrent ¶
type UsersCurrent struct { Id string `json:"id"` Type int `json:"type"` RoleType int `json:"roleType"` Privilege struct { All bool `json:"all"` LastVisited string `json:"lastVisited"` Sites []struct { Key string `json:"key"` Name string `json:"name"` Primary bool `json:"primary"` } `json:"sites"` } `json:"privilege"` Adopt bool `json:"adopt"` Manage bool `json:"manage"` License bool `json:"license"` Name string `json:"name"` Email string `json:"email"` Alert bool `json:"alert"` Disaster int `json:"disaster"` Favorites []string `json:"favorites"` Dbnormal bool `json:"dbnormal"` }
Click to show internal directories.
Click to hide internal directories.