Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusMap = map[string]Status{ "Unknown": StatusUnknown, "Charging": StatusCharging, "Discharging": StatusDischarging, "Not charging": StatusNotCharging, "Full": StatusFull, "FullCharging": StatusFullCharging, }
Functions ¶
This section is empty.
Types ¶
type BatteryInfo ¶
type BatteryInfo struct { Manufacturer string ModelName string SerialNumber string Name string Technology string Energy float64 EnergyFull float64 EnergyFullDesign float64 EnergyRate float64 Voltage float64 Percentage float64 Capacity float64 Status Status TimeToEmpty uint64 TimeToFull uint64 }
func GetBatteryInfo ¶
func GetBatteryInfo(bat *gudev.Device) *BatteryInfo
Click to show internal directories.
Click to hide internal directories.