Initial project snapshot
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package worker
|
||||
|
||||
type SessionEvent struct {
|
||||
Type string `json:"type"`
|
||||
SessionID string `json:"session_id"`
|
||||
WorkerID string `json:"worker_id"`
|
||||
Payload map[string]any `json:"payload,omitempty"`
|
||||
}
|
||||
|
||||
const (
|
||||
SessionEventConnected = "session_connected"
|
||||
SessionEventHeartbeat = "session_heartbeat"
|
||||
SessionEventFailed = "session_failed"
|
||||
SessionEventTerminated = "session_terminated"
|
||||
SessionEventDisplayReady = "session_display_ready"
|
||||
SessionEventRenderReady = "session_render_ready"
|
||||
SessionEventRenderDirty = "session_render_dirty"
|
||||
SessionEventRenderResized = "session_render_resized"
|
||||
SessionEventCursorUpdated = "session_cursor_updated"
|
||||
SessionEventFrame = "session_frame"
|
||||
SessionEventClipboardText = "session_clipboard_text"
|
||||
SessionEventFileUploaded = "session_file_upload_completed"
|
||||
SessionEventFileDownloadAvailable = "session_file_download_available"
|
||||
SessionEventFileDownloadChunk = "session_file_download_chunk"
|
||||
SessionEventFileDownloadProgress = "session_file_download_progress"
|
||||
SessionEventFileDownloadCompleted = "session_file_download_completed"
|
||||
SessionEventFileDownloadFailed = "session_file_download_failed"
|
||||
SessionEventFileDownloadBlocked = "session_file_download_blocked"
|
||||
)
|
||||
Reference in New Issue
Block a user