cloud-game/pkg/api/user.go
sergystepanov 3bb54fdad4
Clean API (#391)
Remove hard coupling between api (all the API data structures) and com (app clients communication protocol and logic).
2023-03-18 20:24:06 +03:00

26 lines
755 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 []string `json:"games"`
Wid string `json:"wid"`
}
WebrtcAnswerUserRequest string
WebrtcUserIceCandidate string
)