message

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastStatus

type BroadcastStatus struct {
	IsActive bool   `json:"is_active"`
	URL      string `json:"url,omitempty"`
}

type ClipboardData

type ClipboardData struct {
	Text string `json:"text"`
}

type ControlButton

type ControlButton struct {
	*ControlPos
	Code uint32 `json:"code"`
}

type ControlHost

type ControlHost struct {
	HasHost bool   `json:"has_host"`
	HostID  string `json:"host_id,omitempty"`
}

type ControlKey

type ControlKey struct {
	*ControlPos
	Keysym uint32 `json:"keysym"`
}

type ControlPos

type ControlPos struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type ControlScroll added in v1.6.15

type ControlScroll struct {
	// TOOD: remove this once the client is fixed
	X int `json:"x"`
	Y int `json:"y"`

	DeltaX     int  `json:"delta_x"`
	DeltaY     int  `json:"delta_y"`
	ControlKey bool `json:"control_key"`
}

type ControlTouch added in v1.6.14

type ControlTouch struct {
	TouchId uint32 `json:"touch_id"`
	*ControlPos
	Pressure uint8 `json:"pressure"`
}

type KeyboardMap

type KeyboardMap struct {
	types.KeyboardMap
}

type KeyboardModifiers

type KeyboardModifiers struct {
	types.KeyboardModifiers
}

type MemberProfile

type MemberProfile struct {
	ID string `json:"id"`
	types.MemberProfile
}

type ScreenSize

type ScreenSize struct {
	Width  int   `json:"width"`
	Height int   `json:"height"`
	Rate   int16 `json:"rate"`
}

type SendBroadcast

type SendBroadcast struct {
	Sender  string `json:"sender"`
	Subject string `json:"subject"`
	Body    any    `json:"body"`
}

type SendUnicast

type SendUnicast struct {
	Sender   string `json:"sender"`
	Receiver string `json:"receiver"`
	Subject  string `json:"subject"`
	Body     any    `json:"body"`
}

type SessionCursors

type SessionCursors struct {
	ID      string         `json:"id"`
	Cursors []types.Cursor `json:"cursors"`
}

type SessionData

type SessionData struct {
	ID      string              `json:"id"`
	Profile types.MemberProfile `json:"profile"`
	State   types.SessionState  `json:"state"`
}

type SessionID

type SessionID struct {
	ID string `json:"id"`
}

type SessionState

type SessionState struct {
	ID string `json:"id"`
	types.SessionState
}

type SignalAudio added in v1.6.13

type SignalAudio struct {
	types.PeerAudioRequest
}

type SignalCandidate

type SignalCandidate struct {
	webrtc.ICECandidateInit
}

type SignalDescription

type SignalDescription struct {
	SDP string `json:"sdp"`
}

type SignalProvide

type SignalProvide struct {
	SDP        string            `json:"sdp"`
	ICEServers []types.ICEServer `json:"iceservers"`

	Video types.PeerVideo `json:"video"`
	Audio types.PeerAudio `json:"audio"`
}

type SignalRequest added in v1.6.13

type SignalRequest struct {
	Video types.PeerVideoRequest `json:"video"`
	Audio types.PeerAudioRequest `json:"audio"`

	Auto bool `json:"auto"` // TODO: Remove this
}

type SignalVideo

type SignalVideo struct {
	types.PeerVideoRequest
}

type SystemAdmin

type SystemAdmin struct {
	ScreenSizesList []ScreenSize    `json:"screen_sizes_list"`
	BroadcastStatus BroadcastStatus `json:"broadcast_status"`
}

type SystemDisconnect

type SystemDisconnect struct {
	Message string `json:"message"`
}

type SystemInit

type SystemInit struct {
	SessionId         string                 `json:"session_id"`
	ControlHost       ControlHost            `json:"control_host"`
	ScreenSize        ScreenSize             `json:"screen_size"`
	Sessions          map[string]SessionData `json:"sessions"`
	Settings          types.Settings         `json:"settings"`
	TouchEvents       bool                   `json:"touch_events"`
	ScreencastEnabled bool                   `json:"screencast_enabled"`
	WebRTC            SystemWebRTC           `json:"webrtc"`
}

type SystemLog

type SystemLog struct {
	Level   string         `json:"level"`
	Fields  map[string]any `json:"fields"`
	Message string         `json:"message"`
}

type SystemLogs

type SystemLogs = []SystemLog

type SystemWebRTC

type SystemWebRTC struct {
	Videos []string `json:"videos"`
}

Jump to

Keyboard shortcuts

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