Documentation
¶
Overview ¶
Package deviceaccess implements the DeviceAccess domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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.