nut

package
v0.0.0-...-78b16c4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetUPSState(upsServer string) (UPSState, error)
}

func NewClient

func NewClient() Client

type UPSState

type UPSState struct {
	BatteryCharge       int64
	IsOnLinePower       bool
	UPSLoad             int64
	UPSRealPowerNominal int64
}

Jump to

Keyboard shortcuts

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