powersupply

package
v0.0.0-...-17244d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACOnline

func ACOnline() (bool, bool, error)

return exist, online, error

func GetDevices

func GetDevices(client *gudev.Client) []*gudev.Device

func GetSystemBatteryInfos

func GetSystemBatteryInfos() ([]*battery.BatteryInfo, error)

func IsBattery

func IsBattery(dev *gudev.Device) bool

func IsMains

func IsMains(dev *gudev.Device) bool

func IsSystemBattery

func IsSystemBattery(dev *gudev.Device) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL