powersupply

package
v0.0.0-...-d1fb4aa Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 4 Imported by: 2

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