mirror of
https://github.com/krishpranav/remote-desktop.git
synced 2025-12-24 12:47:52 +08:00
api: payload + go mod
This commit is contained in:
18
api/payload.go
Normal file
18
api/payload.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package api
|
||||
|
||||
type newSessionRequest struct {
|
||||
Offer string `json:"offer"`
|
||||
Screen int `json:"screen"`
|
||||
}
|
||||
|
||||
type newSessionResponse struct {
|
||||
Answer string `json:"answer"`
|
||||
}
|
||||
|
||||
type screenPayload struct {
|
||||
Index int `json:"index"`
|
||||
}
|
||||
|
||||
type screensResponse struct {
|
||||
Screens []screenPayload `json:"screens"`
|
||||
}
|
||||
Reference in New Issue
Block a user