Files
screen-sharing-rdp/webrtc/internal/api/payload.go
2020-11-05 23:24:19 +08:00

19 lines
307 B
Go

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"`
}