battery

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: CC0-1.0 Imports: 3 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 struct {
	// contains filtered or unexported fields
}

Client wraps the gRPC BatteryManagerService client.

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

NewClient creates a new battery client.

func (*Client) ComputeChargeTimeRemaining

func (c *Client) ComputeChargeTimeRemaining(ctx context.Context) (int64, error)

ComputeChargeTimeRemaining calls the ComputeChargeTimeRemaining RPC.

func (*Client) GetIntProperty

func (c *Client) GetIntProperty(ctx context.Context, arg0 int32) (int32, error)

GetIntProperty calls the GetIntProperty RPC.

func (*Client) GetLongProperty

func (c *Client) GetLongProperty(ctx context.Context, arg0 int32) (int64, error)

GetLongProperty calls the GetLongProperty RPC.

func (*Client) GetStringProperty

func (c *Client) GetStringProperty(ctx context.Context, arg0 int32) (string, error)

GetStringProperty calls the GetStringProperty RPC.

func (*Client) IsCharging

func (c *Client) IsCharging(ctx context.Context) (bool, error)

IsCharging calls the IsCharging RPC.

Jump to

Keyboard shortcuts

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