mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove event from messages.
This commit is contained in:
@ -11,12 +11,10 @@ import (
|
||||
/////////////////////////////
|
||||
|
||||
type SystemWebRTC struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Videos []string `json:"videos"`
|
||||
}
|
||||
|
||||
type SystemInit struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
SessionId string `json:"session_id"`
|
||||
ControlHost ControlHost `json:"control_host"`
|
||||
ScreenSize ScreenSize `json:"screen_size"`
|
||||
@ -27,13 +25,11 @@ type SystemInit struct {
|
||||
}
|
||||
|
||||
type SystemAdmin struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ScreenSizesList []ScreenSize `json:"screen_sizes_list"`
|
||||
BroadcastStatus BroadcastStatus `json:"broadcast_status"`
|
||||
}
|
||||
|
||||
type SystemDisconnect struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
@ -42,24 +38,20 @@ type SystemDisconnect struct {
|
||||
/////////////////////////////
|
||||
|
||||
type SignalProvide struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
SDP string `json:"sdp"`
|
||||
ICEServers []types.ICEServer `json:"iceservers"`
|
||||
Video string `json:"video"`
|
||||
}
|
||||
|
||||
type SignalCandidate struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
*webrtc.ICECandidateInit
|
||||
webrtc.ICECandidateInit
|
||||
}
|
||||
|
||||
type SignalAnswer struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
SDP string `json:"sdp"`
|
||||
SDP string `json:"sdp"`
|
||||
}
|
||||
|
||||
type SignalVideo struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Video string `json:"video"`
|
||||
}
|
||||
|
||||
@ -68,24 +60,20 @@ type SignalVideo struct {
|
||||
/////////////////////////////
|
||||
|
||||
type SessionID struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ID string `json:"id"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
type MemberProfile struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ID string `json:"id"`
|
||||
*types.MemberProfile
|
||||
ID string `json:"id"`
|
||||
types.MemberProfile
|
||||
}
|
||||
|
||||
type SessionState struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ID string `json:"id"`
|
||||
*types.SessionState
|
||||
ID string `json:"id"`
|
||||
types.SessionState
|
||||
}
|
||||
|
||||
type SessionData struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ID string `json:"id"`
|
||||
Profile types.MemberProfile `json:"profile"`
|
||||
State types.SessionState `json:"state"`
|
||||
@ -96,29 +84,25 @@ type SessionData struct {
|
||||
/////////////////////////////
|
||||
|
||||
type ControlHost struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
HasHost bool `json:"has_host"`
|
||||
HostID string `json:"host_id,omitempty"`
|
||||
}
|
||||
|
||||
// TODO: New.
|
||||
type ControlMove struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
X uint16 `json:"x"`
|
||||
Y uint16 `json:"y"`
|
||||
X uint16 `json:"x"`
|
||||
Y uint16 `json:"y"`
|
||||
}
|
||||
|
||||
// TODO: New.
|
||||
type ControlScroll struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
X int16 `json:"x"`
|
||||
Y int16 `json:"y"`
|
||||
X int16 `json:"x"`
|
||||
Y int16 `json:"y"`
|
||||
}
|
||||
|
||||
// TODO: New.
|
||||
type ControlKey struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Key uint32 `json:"key"`
|
||||
Key uint32 `json:"key"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
@ -126,10 +110,9 @@ type ControlKey struct {
|
||||
/////////////////////////////
|
||||
|
||||
type ScreenSize struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Rate int16 `json:"rate"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Rate int16 `json:"rate"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
@ -137,8 +120,7 @@ type ScreenSize struct {
|
||||
/////////////////////////////
|
||||
|
||||
type ClipboardData struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Text string `json:"text"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
@ -146,15 +128,13 @@ type ClipboardData struct {
|
||||
/////////////////////////////
|
||||
|
||||
type KeyboardMap struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Layout string `json:"layout"`
|
||||
Variant string `json:"variant"`
|
||||
}
|
||||
|
||||
type KeyboardModifiers struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
CapsLock *bool `json:"capslock"`
|
||||
NumLock *bool `json:"numlock"`
|
||||
CapsLock *bool `json:"capslock"`
|
||||
NumLock *bool `json:"numlock"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
@ -162,7 +142,6 @@ type KeyboardModifiers struct {
|
||||
/////////////////////////////
|
||||
|
||||
type BroadcastStatus struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
IsActive bool `json:"is_active"`
|
||||
URL string `json:"url,omitempty"`
|
||||
}
|
||||
@ -172,7 +151,6 @@ type BroadcastStatus struct {
|
||||
/////////////////////////////
|
||||
|
||||
type SendUnicast struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Sender string `json:"sender"`
|
||||
Receiver string `json:"receiver"`
|
||||
Subject string `json:"subject"`
|
||||
@ -180,7 +158,6 @@ type SendUnicast struct {
|
||||
}
|
||||
|
||||
type SendBroadcast struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
Sender string `json:"sender"`
|
||||
Subject string `json:"subject"`
|
||||
Body interface{} `json:"body"`
|
||||
|
Reference in New Issue
Block a user