mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
30 lines
839 B
Go
30 lines
839 B
Go
package api
|
|
|
|
type (
|
|
ChangePlayerUserRequest int
|
|
CheckLatencyUserResponse []string
|
|
CheckLatencyUserRequest map[string]int64
|
|
GameStartUserRequest struct {
|
|
GameName string `json:"game_name"`
|
|
RoomId string `json:"room_id"`
|
|
Record bool `json:"record,omitempty"`
|
|
RecordUser string `json:"record_user,omitempty"`
|
|
PlayerIndex int `json:"player_index"`
|
|
}
|
|
IceServer struct {
|
|
Urls string `json:"urls,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Credential string `json:"credential,omitempty"`
|
|
}
|
|
InitSessionUserResponse struct {
|
|
Ice []IceServer `json:"ice"`
|
|
Games []AppMeta `json:"games"`
|
|
Wid string `json:"wid"`
|
|
}
|
|
AppMeta struct {
|
|
Title string `json:"title"`
|
|
System string `json:"system"`
|
|
}
|
|
WebrtcAnswerUserRequest string
|
|
WebrtcUserIceCandidate string
|
|
)
|