diagnostics

package
v1.0.165 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reboot

func Reboot(device ios.DeviceEntry) error

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func New

func New(device ios.DeviceEntry) (*Connection, error)

func (*Connection) AllValues

func (diagnosticsConn *Connection) AllValues() (allDiagnosticsResponse, error)

func (*Connection) Battery added in v1.0.152

func (diagnosticsConn *Connection) Battery() (IORegistry, error)

Battery extracts the battery ioregistry stats like Temperature, Voltage, CurrentCapacity

func (*Connection) Close

func (diagnosticsConn *Connection) Close() error

func (*Connection) MobileGestaltQuery added in v1.0.29

func (diagnosticsConn *Connection) MobileGestaltQuery(keys []string) (interface{}, error)

func (*Connection) Reboot

func (diagnosticsConn *Connection) Reboot() error

type Diagnostics

type Diagnostics struct {
	GasGauge   GasGauge
	HDMI       HDMI
	NAND       NAND
	WiFi       WiFi
	IORegistry IORegistry
}

type GasGauge

type GasGauge struct {
	CycleCount         uint64
	DesignCapacity     uint64
	FullChargeCapacity uint64
	Status             string
}

type HDMI

type HDMI struct {
	Connection string
	Status     string
}

type IORegistry added in v1.0.152

type IORegistry struct {
	InstantAmperage int
	Temperature     int
	Voltage         int
	IsCharging      bool
	CurrentCapacity int
}

IORegistry relates to the battery stats

type NAND

type NAND struct {
	Status string
}

type WiFi

type WiFi struct {
	Active string
	Status string
}

Jump to

Keyboard shortcuts

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