Documentation
¶
Index ¶
- type ModelsCreateSessionRequest
- type ModelsGameSession
- type ModelsGameSessionSetting
- type ModelsMatchMaking
- type ModelsMatchingAlly
- type ModelsMatchingParty
- type ModelsPagination
- type ModelsPartyMember
- type ModelsPodConfig
- type ModelsServer
- type ModelsSessionByUserIDsResponse
- type ModelsSessionQueryResponse
- type ModelsSessionResponse
- type ModelsStatusHistory
- type ModelsUpdateSessionRequest
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelsCreateSessionRequest ¶
type ModelsCreateSessionRequest struct {
// game session setting
// Required: true
GameSessionSetting *ModelsGameSessionSetting `json:"game_session_setting"`
// game version
// Required: true
GameVersion *string `json:"game_version"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// username
// Required: true
Username *string `json:"username"`
}
ModelsCreateSessionRequest models create session request
swagger:model models.CreateSessionRequest
func (*ModelsCreateSessionRequest) MarshalBinary ¶
func (m *ModelsCreateSessionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsCreateSessionRequest) UnmarshalBinary ¶
func (m *ModelsCreateSessionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsGameSession ¶
type ModelsGameSession struct {
// created at
// Required: true
// Format: date-time
CreatedAt *strfmt.DateTime `json:"created_at"`
// game session setting
// Required: true
GameSessionSetting *ModelsGameSessionSetting `json:"game_session_setting"`
// game version
// Required: true
GameVersion *string `json:"game_version"`
// joinable
// Required: true
Joinable *bool `json:"joinable"`
// match
// Required: true
Match *ModelsMatchMaking `json:"match"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// server
// Required: true
Server *ModelsServer `json:"server"`
// session id
// Required: true
SessionID *string `json:"session_id"`
// session type
// Required: true
SessionType *string `json:"session_type"`
// user id
// Required: true
UserID *string `json:"user_id"`
// username
// Required: true
Username *string `json:"username"`
}
ModelsGameSession models game session
swagger:model models.GameSession
func (*ModelsGameSession) MarshalBinary ¶
func (m *ModelsGameSession) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsGameSession) UnmarshalBinary ¶
func (m *ModelsGameSession) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsGameSessionSetting ¶
type ModelsGameSessionSetting struct {
// allow join in progress
// Required: true
AllowJoinInProgress *bool `json:"allow_join_in_progress"`
// current player
// Required: true
CurrentPlayer *int32 `json:"current_player"`
// map name
// Required: true
MapName *string `json:"map_name"`
// max player
// Required: true
MaxPlayer *int32 `json:"max_player"`
// mode
// Required: true
Mode *string `json:"mode"`
// num bot
// Required: true
NumBot *int32 `json:"num_bot"`
// settings
// Required: true
Settings interface{} `json:"settings"`
}
ModelsGameSessionSetting models game session setting
swagger:model models.GameSessionSetting
func (*ModelsGameSessionSetting) MarshalBinary ¶
func (m *ModelsGameSessionSetting) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsGameSessionSetting) UnmarshalBinary ¶
func (m *ModelsGameSessionSetting) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsMatchMaking ¶
type ModelsMatchMaking struct {
// channel
// Required: true
Channel string `json:"channel"`
// client version
// Required: true
ClientVersion string `json:"client_version"`
// created at
// Required: true
// Format: date-time
CreatedAt *strfmt.DateTime `json:"created_at"`
// deployment
// Required: true
Deployment string `json:"deployment"`
// event
// Required: true
Event *string `json:"event"`
// game mode
// Required: true
GameMode string `json:"game_mode"`
// joinable
Joinable *bool `json:"joinable,omitempty"`
// match id
// Required: true
MatchID string `json:"match_id"`
// matching allies
// Required: true
MatchingAllies []*ModelsMatchingAlly `json:"matching_allies"`
// namespace
// Required: true
Namespace string `json:"namespace"`
// party attributes
// Required: true
PartyAttributes interface{} `json:"party_attributes"`
// party id
PartyID *string `json:"party_id,omitempty"`
// queued at
// Required: true
QueuedAt int64 `json:"queued_at"`
// region
// Required: true
Region string `json:"region"`
// server name
// Required: true
ServerName string `json:"server_name"`
// status
// Required: true
Status string `json:"status"`
}
ModelsMatchMaking models match making
swagger:model models.MatchMaking
func (*ModelsMatchMaking) MarshalBinary ¶
func (m *ModelsMatchMaking) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsMatchMaking) UnmarshalBinary ¶
func (m *ModelsMatchMaking) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsMatchingAlly ¶
type ModelsMatchingAlly struct {
// matching parties
// Required: true
MatchingParties []*ModelsMatchingParty `json:"matching_parties"`
}
ModelsMatchingAlly models matching ally
swagger:model models.MatchingAlly
func (*ModelsMatchingAlly) MarshalBinary ¶
func (m *ModelsMatchingAlly) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsMatchingAlly) UnmarshalBinary ¶
func (m *ModelsMatchingAlly) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsMatchingParty ¶
type ModelsMatchingParty struct {
// party attributes
// Required: true
PartyAttributes interface{} `json:"party_attributes"`
// party id
// Required: true
PartyID string `json:"party_id"`
// party members
// Required: true
PartyMembers []*ModelsPartyMember `json:"party_members"`
}
ModelsMatchingParty models matching party
swagger:model models.MatchingParty
func (*ModelsMatchingParty) MarshalBinary ¶
func (m *ModelsMatchingParty) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsMatchingParty) UnmarshalBinary ¶
func (m *ModelsMatchingParty) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsPagination ¶
type ModelsPagination struct {
// first
// Required: true
First *string `json:"first"`
// last
// Required: true
Last *string `json:"last"`
// next
// Required: true
Next *string `json:"next"`
// previous
// Required: true
Previous *string `json:"previous"`
}
ModelsPagination models pagination
swagger:model models.Pagination
func (*ModelsPagination) MarshalBinary ¶
func (m *ModelsPagination) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsPagination) UnmarshalBinary ¶
func (m *ModelsPagination) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsPartyMember ¶
type ModelsPartyMember struct {
// extra attributes
// Required: true
ExtraAttributes interface{} `json:"extra_attributes"`
// user id
// Required: true
UserID string `json:"user_id"`
}
ModelsPartyMember models party member
swagger:model models.PartyMember
func (*ModelsPartyMember) MarshalBinary ¶
func (m *ModelsPartyMember) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsPartyMember) UnmarshalBinary ¶
func (m *ModelsPartyMember) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsPodConfig ¶
type ModelsPodConfig struct {
// cpu limit
// Required: true
CPULimit *int32 `json:"cpu_limit"`
// cpu request
// Required: true
CPURequest *string `json:"cpu_request"`
// mem limit
// Required: true
MemLimit *int32 `json:"mem_limit"`
// mem request
// Required: true
MemRequest *string `json:"mem_request"`
// params
// Required: true
Params *string `json:"params"`
}
ModelsPodConfig models pod config
swagger:model models.PodConfig
func (*ModelsPodConfig) MarshalBinary ¶
func (m *ModelsPodConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsPodConfig) UnmarshalBinary ¶
func (m *ModelsPodConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsServer ¶
type ModelsServer struct {
// allocation id
// Required: true
AllocationID *string `json:"allocation_id"`
// alternate ips
// Required: true
AlternateIps []string `json:"alternate_ips"`
// cpu limit
// Required: true
CPULimit *int32 `json:"cpu_limit"`
// cpu request
// Required: true
CPURequest *string `json:"cpu_request"`
// deployment
// Required: true
Deployment *string `json:"deployment"`
// game version
// Required: true
GameVersion *string `json:"game_version"`
// image version
// Required: true
ImageVersion *string `json:"image_version"`
// ip
// Required: true
IP *string `json:"ip"`
// is override game version
// Required: true
IsOverrideGameVersion *bool `json:"is_override_game_version"`
// last update
// Required: true
// Format: date-time
LastUpdate *strfmt.DateTime `json:"last_update"`
// mem limit
// Required: true
MemLimit *int32 `json:"mem_limit"`
// mem request
// Required: true
MemRequest *string `json:"mem_request"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// params
// Required: true
Params *string `json:"params"`
// pod name
// Required: true
PodName *string `json:"pod_name"`
// port
// Required: true
Port *int32 `json:"port"`
// ports
// Required: true
Ports map[string]int64 `json:"ports"`
// provider
// Required: true
Provider *string `json:"provider"`
// region
// Required: true
Region *string `json:"region"`
// session id
// Required: true
SessionID *string `json:"session_id"`
// status
// Required: true
Status *string `json:"status"`
// status history
// Required: true
StatusHistory []*ModelsStatusHistory `json:"status_history"`
}
ModelsServer models server
swagger:model models.Server
func (*ModelsServer) MarshalBinary ¶
func (m *ModelsServer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsServer) UnmarshalBinary ¶
func (m *ModelsServer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsSessionByUserIDsResponse ¶
type ModelsSessionByUserIDsResponse struct {
// data
// Required: true
Data []*ModelsGameSession `json:"data"`
}
ModelsSessionByUserIDsResponse models session by user i ds response
swagger:model models.SessionByUserIDsResponse
func (*ModelsSessionByUserIDsResponse) MarshalBinary ¶
func (m *ModelsSessionByUserIDsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsSessionByUserIDsResponse) UnmarshalBinary ¶
func (m *ModelsSessionByUserIDsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsSessionQueryResponse ¶
type ModelsSessionQueryResponse struct {
// pagination
// Required: true
Pagination *ModelsPagination `json:"pagination"`
// sessions
// Required: true
Sessions []*ModelsGameSession `json:"sessions"`
}
ModelsSessionQueryResponse models session query response
swagger:model models.SessionQueryResponse
func (*ModelsSessionQueryResponse) MarshalBinary ¶
func (m *ModelsSessionQueryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsSessionQueryResponse) UnmarshalBinary ¶
func (m *ModelsSessionQueryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsSessionResponse ¶
type ModelsSessionResponse struct {
// created at
// Required: true
// Format: date-time
CreatedAt *strfmt.DateTime `json:"created_at"`
// game session setting
// Required: true
GameSessionSetting *ModelsGameSessionSetting `json:"game_session_setting"`
// game version
// Required: true
GameVersion *string `json:"game_version"`
// joinable
// Required: true
Joinable *bool `json:"joinable"`
// match
// Required: true
Match *ModelsMatchMaking `json:"match"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// server
// Required: true
Server *ModelsServer `json:"server"`
// session id
// Required: true
SessionID *string `json:"session_id"`
// session type
// Required: true
SessionType *string `json:"session_type"`
// user id
// Required: true
UserID *string `json:"user_id"`
// username
// Required: true
Username *string `json:"username"`
}
ModelsSessionResponse models session response
swagger:model models.SessionResponse
func (*ModelsSessionResponse) MarshalBinary ¶
func (m *ModelsSessionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsSessionResponse) UnmarshalBinary ¶
func (m *ModelsSessionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsStatusHistory ¶
type ModelsStatusHistory struct {
// status
// Required: true
Status *string `json:"status"`
// time stamp
// Required: true
// Format: date-time
TimeStamp *strfmt.DateTime `json:"time_stamp"`
}
ModelsStatusHistory models status history
swagger:model models.StatusHistory
func (*ModelsStatusHistory) MarshalBinary ¶
func (m *ModelsStatusHistory) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsStatusHistory) UnmarshalBinary ¶
func (m *ModelsStatusHistory) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsUpdateSessionRequest ¶
type ModelsUpdateSessionRequest struct {
// game current player
// Required: true
GameCurrentPlayer *int32 `json:"game_current_player"`
// game max player
// Required: true
GameMaxPlayer *int32 `json:"game_max_player"`
}
ModelsUpdateSessionRequest models update session request
swagger:model models.UpdateSessionRequest
func (*ModelsUpdateSessionRequest) MarshalBinary ¶
func (m *ModelsUpdateSessionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsUpdateSessionRequest) UnmarshalBinary ¶
func (m *ModelsUpdateSessionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseError ¶
type ResponseError struct {
// error code
// Required: true
ErrorCode *int32 `json:"errorCode"`
// error message
// Required: true
ErrorMessage *string `json:"errorMessage"`
}
ResponseError response error
swagger:model response.Error
func (*ResponseError) MarshalBinary ¶
func (m *ResponseError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseError) UnmarshalBinary ¶
func (m *ResponseError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- models_create_session_request.go
- models_game_session.go
- models_game_session_setting.go
- models_match_making.go
- models_matching_ally.go
- models_matching_party.go
- models_pagination.go
- models_party_member.go
- models_pod_config.go
- models_server.go
- models_session_by_user_i_ds_response.go
- models_session_query_response.go
- models_session_response.go
- models_status_history.go
- models_update_session_request.go
- response_error.go