deviceaccess

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package deviceaccess implements the DeviceAccess domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the DeviceAccess domain with the connection set to conn.

Types

type CancelPromptArgs

type CancelPromptArgs struct {
	ID RequestID `json:"id"` // No description.
}

CancelPromptArgs represents the arguments for CancelPrompt in the DeviceAccess domain.

func NewCancelPromptArgs

func NewCancelPromptArgs(id RequestID) *CancelPromptArgs

NewCancelPromptArgs initializes CancelPromptArgs with the required arguments.

type DeviceID

type DeviceID string

DeviceID A device id.

type DeviceRequestPromptedClient

type DeviceRequestPromptedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*DeviceRequestPromptedReply, error)
	rpcc.Stream
}

DeviceRequestPromptedClient is a client for DeviceRequestPrompted events. A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.

type DeviceRequestPromptedReply

type DeviceRequestPromptedReply struct {
	ID      RequestID      `json:"id"`      // No description.
	Devices []PromptDevice `json:"devices"` // No description.
}

DeviceRequestPromptedReply is the reply for DeviceRequestPrompted events.

type PromptDevice

type PromptDevice struct {
	ID   DeviceID `json:"id"`   // No description.
	Name string   `json:"name"` // Display name as it appears in a device request user prompt.
}

PromptDevice Device information displayed in a user prompt to select a device.

type RequestID

type RequestID string

RequestID Device request id.

type SelectPromptArgs

type SelectPromptArgs struct {
	ID       RequestID `json:"id"`       // No description.
	DeviceID DeviceID  `json:"deviceId"` // No description.
}

SelectPromptArgs represents the arguments for SelectPrompt in the DeviceAccess domain.

func NewSelectPromptArgs

func NewSelectPromptArgs(id RequestID, deviceID DeviceID) *SelectPromptArgs

NewSelectPromptArgs initializes SelectPromptArgs with the required arguments.

Jump to

Keyboard shortcuts

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