Documentation
¶
Index ¶
- type Client
- func (c *Client) ComputeChargeTimeRemaining(ctx context.Context) (int64, error)
- func (c *Client) GetIntProperty(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetLongProperty(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetStringProperty(ctx context.Context, arg0 int32) (string, error)
- func (c *Client) IsCharging(ctx context.Context) (bool, error)
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 ¶
ComputeChargeTimeRemaining calls the ComputeChargeTimeRemaining RPC.
func (*Client) GetIntProperty ¶
GetIntProperty calls the GetIntProperty RPC.
func (*Client) GetLongProperty ¶
GetLongProperty calls the GetLongProperty RPC.
func (*Client) GetStringProperty ¶
GetStringProperty calls the GetStringProperty RPC.
Click to show internal directories.
Click to hide internal directories.