Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Count ¶
type Count struct {
StartTime string `xml:"StartTime,attr"`
StartTimeLocal time.Time
StartTimeUTC time.Time
EndTime string `xml:"EndTime,attr"`
EndTimeLocal time.Time
EndTimeUTC time.Time
UnixStartTime int64 `xml:"UnixStartTime,attr"`
UnixStartTimeParsed time.Time
Enters int `xml:"Enters,attr"`
Exits int `xml:"Exits,attr"`
Status int `xml:"Status,attr"`
}
type Device ¶
type Device struct {
ID string `gorm:"primaryKey"`
Name string
MacAddress string
IPAddress string
HostName string
HTTPPort int
HTTPSPort int
Timezone int
TimezoneName string
DST int
HwPlatform string
SerialNumber string
DeviceType int
SwRelease string
LastTransmit time.Time
SiteID string
Site *Site
gorm.Model
}
type MetricsV5 ¶
type MetricsV5 struct {
XMLName xml.Name `xml:"Metrics"`
SiteID string `xml:"SiteId,attr"`
SiteName string `xml:"Sitename,attr"`
DeviceID string `xml:"DeviceId,attr"`
DeviceName string `xml:"Devicename,attr"`
DivisionID string `xml:"DivisionId,attr"`
Properties Properties `xml:"Properties"`
ReportData ReportData `xml:"ReportData"`
}
type Properties ¶
type Properties struct {
Version int `xml:"Version"`
TransmitTime int64 `xml:"TransmitTime"`
TransmitTimeUTC time.Time
MacAddress string `xml:"MacAddress"`
IPAddress string `xml:"IpAddress"`
HostName string `xml:"HostName"`
HTTPPort int `xml:"HttpPort"`
HTTPSPort int `xml:"HttpsPort"`
Timezone int `xml:"Timezone"`
TimezoneName string `xml:"TimezoneName"`
DST int `xml:"DST"`
TimezoneParsed *time.Location
HwPlatform string `xml:"HwPlatform"`
SerialNumber string `xml:"SerialNumber"`
DeviceType int `xml:"DeviceType"`
SwRelease string `xml:"SwRelease"`
}
func (*Properties) UnmarshalXML ¶
func (p *Properties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
type ReportData ¶
Click to show internal directories.
Click to hide internal directories.