v1

package
v0.0.0-...-d12dee2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMsg

type ClientMsg struct {
	Type     string      `json:"message_type"`
	ClientId int         `json:"client_id"`
	Payload  interface{} `json:"payload"`
}

type ConnectMsg

type ConnectMsg struct {
	DeviceId string `json:"device_id"`
}

type ControlMsgHeader

type ControlMsgHeader struct {
	Type string `json:"message_type"`
}

type DeviceDescriptor

type DeviceDescriptor struct {
	DeviceId  string `json:"device_id"`
	GroupName string `json:"group_name"`
	Owner     string `json:"owner,omitempty"`
	Name      string `json:"name,omitempty"`
	ADBPort   int    `json:"adb_port"`
}

type DeviceInfoReply

type DeviceInfoReply struct {
	DeviceDescriptor
	RegistrationInfo interface{} `json:"registration_info"`
}

type ErrorMsg

type ErrorMsg struct {
	Error   string `json:"error"`
	Details string `json:"details,omitempty"`
}

type ForwardMsg

type ForwardMsg struct {
	Payload interface{} `json:"payload"`
	// This is used by the device message and ignored by the client
	ClientId int `json:"client_id"`
}

type IceServer

type IceServer struct {
	URLs       []string    `json:"urls"`
	Username   string      `json:"username,omitempty"`
	Credential interface{} `json:"credential,omitempty"`
}

type InfraConfig

type InfraConfig struct {
	Type       string      `json:"message_type"`
	IceServers []IceServer `json:"ice_servers"`
}

type NewConnMsg

type NewConnMsg struct {
	DeviceId string `json:"device_id"`
}

type NewConnReply

type NewConnReply struct {
	ConnId     string      `json:"connection_id"`
	DeviceInfo interface{} `json:"device_info"`
}

type PreRegisterMsg

type PreRegisterMsg struct {
	// Type must be set to "pre-register"
	ControlMsgHeader
	GroupName string `json:"group_name"`
	Owner     string `json:"owner"`
	Devices   []struct {
		Id      string `json:"id"`
		Name    string `json:"name"`
		ADBPort int    `json:"adb_port"`
	} `json:"devices"`
}

type PreRegistrationResponse

type PreRegistrationResponse []RegistrationStatusReport

type RegisterMsg

type RegisterMsg struct {
	DeviceId string      `json:"device_id"`
	Port     int         `json:"device_port"`
	Info     interface{} `json:"device_info"`
}

type RegistrationStatusReport

type RegistrationStatusReport struct {
	Id     string `json:"id"`
	Status string `json:"status"`
	Msg    string `json:"message"`
}

Jump to

Keyboard shortcuts

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