Documentation ¶
Index ¶
Constants ¶
View Source
const DeviceNameCtxKey = "deviceName"
DeviceNameCtxKey context key for device name
View Source
const OsNameCtxKey = "OsName"
OsNameCtxKey context key for operating system name
View Source
const OsVersionCtxKey = "OsVersion"
OsVersionCtxKey context key for operating system version
Variables ¶
This section is empty.
Functions ¶
func GetDesktopUIUserAgent ¶ added in v0.6.0
func GetDesktopUIUserAgent() string
GetDesktopUIUserAgent returns the Desktop ui user agent
Types ¶
type Environment ¶ added in v0.26.0
type Info ¶
type Info struct { GoOS string Kernel string Platform string OS string OSVersion string Hostname string CPUs int WiretrusteeVersion string UIVersion string KernelVersion string NetworkAddresses []NetworkAddress SystemSerialNumber string SystemProductName string SystemManufacturer string Environment Environment }
Info is an object that contains machine information Most of the code is taken from https://github.com/matishsiao/goInfo
type NetworkAddress ¶ added in v0.26.0
type Win32_BIOS ¶ added in v0.26.0
type Win32_BIOS struct {
SerialNumber string
}
type Win32_ComputerSystem ¶ added in v0.26.0
type Win32_ComputerSystem struct {
Manufacturer string
}
type Win32_ComputerSystemProduct ¶ added in v0.26.0
type Win32_ComputerSystemProduct struct {
Name string
}
type Win32_OperatingSystem ¶ added in v0.24.3
type Win32_OperatingSystem struct {
Caption string
}
Click to show internal directories.
Click to hide internal directories.