messages highlight comments.

This commit is contained in:
Miroslav Šedivý 2020-11-30 21:06:37 +01:00
parent caa4be4d3b
commit 5c0dee93ac

View File

@ -5,7 +5,10 @@ type Message struct {
Payload interface{} `json:"payload"` // TODO: New. Payload interface{} `json:"payload"` // TODO: New.
} }
/////////////////////////////
// System // System
/////////////////////////////
type SystemInit struct { type SystemInit struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
ControlHost ControlHost `json:"control_host"` ControlHost ControlHost `json:"control_host"`
@ -25,7 +28,10 @@ type SystemDisconnect struct {
Message string `json:"message"` Message string `json:"message"`
} }
/////////////////////////////
// Signal // Signal
/////////////////////////////
type SignalProvide struct { type SignalProvide struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
SDP string `json:"sdp"` SDP string `json:"sdp"`
@ -38,8 +44,10 @@ type SignalAnswer struct {
SDP string `json:"sdp"` SDP string `json:"sdp"`
} }
/////////////////////////////
// Member // Member
/////////////////////////////
// TODO: New. // TODO: New.
type MemberID struct { type MemberID struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
@ -54,7 +62,10 @@ type MemberData struct {
IsAdmin bool `json:"is_admin"` IsAdmin bool `json:"is_admin"`
} }
/////////////////////////////
// Control // Control
/////////////////////////////
type ControlHost struct { type ControlHost struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
HasHost bool `json:"has_host"` HasHost bool `json:"has_host"`
@ -81,7 +92,10 @@ type ControlKey struct {
Key uint64 `json:"key"` Key uint64 `json:"key"`
} }
/////////////////////////////
// Screen // Screen
/////////////////////////////
type ScreenSize struct { type ScreenSize struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
Width int `json:"width"` Width int `json:"width"`
@ -89,13 +103,19 @@ type ScreenSize struct {
Rate int `json:"rate"` Rate int `json:"rate"`
} }
/////////////////////////////
// Clipboard // Clipboard
/////////////////////////////
type ClipboardData struct { type ClipboardData struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
Text string `json:"text"` Text string `json:"text"`
} }
/////////////////////////////
// Keyboard // Keyboard
/////////////////////////////
type KeyboardModifiers struct { type KeyboardModifiers struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
CapsLock *bool `json:"caps_lock"` CapsLock *bool `json:"caps_lock"`
@ -108,6 +128,10 @@ type KeyboardLayout struct {
Layout string `json:"layout"` Layout string `json:"layout"`
} }
/////////////////////////////
// Broadcast
/////////////////////////////
type BroadcastStatus struct { type BroadcastStatus struct {
Event string `json:"event,omitempty"` Event string `json:"event,omitempty"`
IsActive bool `json:"is_active"` IsActive bool `json:"is_active"`