sessionbrowserclientmodels

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelsActiveCustomGameResponse added in v0.4.0

type ModelsActiveCustomGameResponse struct {

	// pagination
	// Required: true
	Pagination *ModelsPagingCursor `json:"pagination"`

	// sessions
	// Required: true
	Sessions []*ModelsCustomGameResponse `json:"sessions"`
}

ModelsActiveCustomGameResponse models active custom game response

swagger:model models.ActiveCustomGameResponse

func (*ModelsActiveCustomGameResponse) MarshalBinary added in v0.4.0

func (m *ModelsActiveCustomGameResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsActiveCustomGameResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsActiveCustomGameResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsActiveCustomGameResponse) Validate added in v0.4.0

func (m *ModelsActiveCustomGameResponse) Validate(formats strfmt.Registry) error

Validate validates this models active custom game response

type ModelsActiveMatchmakingGameResponse added in v0.4.0

type ModelsActiveMatchmakingGameResponse struct {

	// pagination
	// Required: true
	Pagination *ModelsPagingCursor `json:"pagination"`

	// sessions
	// Required: true
	Sessions []*ModelsGameSession `json:"sessions"`
}

ModelsActiveMatchmakingGameResponse models active matchmaking game response

swagger:model models.ActiveMatchmakingGameResponse

func (*ModelsActiveMatchmakingGameResponse) MarshalBinary added in v0.4.0

func (m *ModelsActiveMatchmakingGameResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsActiveMatchmakingGameResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsActiveMatchmakingGameResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsActiveMatchmakingGameResponse) Validate added in v0.4.0

Validate validates this models active matchmaking game response

type ModelsAddPlayerRequest added in v0.4.0

type ModelsAddPlayerRequest struct {

	// as spectator
	// Required: true
	AsSpectator *bool `json:"as_spectator"`

	// user id
	// Required: true
	UserID *string `json:"user_id"`
}

ModelsAddPlayerRequest models add player request

swagger:model models.AddPlayerRequest

func (*ModelsAddPlayerRequest) MarshalBinary added in v0.4.0

func (m *ModelsAddPlayerRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsAddPlayerRequest) UnmarshalBinary added in v0.4.0

func (m *ModelsAddPlayerRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsAddPlayerRequest) Validate added in v0.4.0

func (m *ModelsAddPlayerRequest) Validate(formats strfmt.Registry) error

Validate validates this models add player request

type ModelsAddPlayerResponse added in v0.4.0

type ModelsAddPlayerResponse struct {

	// status
	// Required: true
	Status *bool `json:"status"`
}

ModelsAddPlayerResponse models add player response

swagger:model models.AddPlayerResponse

func (*ModelsAddPlayerResponse) MarshalBinary added in v0.4.0

func (m *ModelsAddPlayerResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsAddPlayerResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsAddPlayerResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsAddPlayerResponse) Validate added in v0.4.0

func (m *ModelsAddPlayerResponse) Validate(formats strfmt.Registry) error

Validate validates this models add player response

type ModelsAdminSessionResponse added in v0.4.0

type ModelsAdminSessionResponse struct {

	// all players
	// Required: true
	AllPlayers []string `json:"all_players"`

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

	// players
	// Required: true
	Players []string `json:"players"`

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

	// spectators
	// Required: true
	Spectators []string `json:"spectators"`

	// user id
	// Required: true
	UserID *string `json:"user_id"`

	// username
	// Required: true
	Username *string `json:"username"`
}

ModelsAdminSessionResponse models admin session response

swagger:model models.AdminSessionResponse

func (*ModelsAdminSessionResponse) MarshalBinary added in v0.4.0

func (m *ModelsAdminSessionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsAdminSessionResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsAdminSessionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsAdminSessionResponse) Validate added in v0.4.0

func (m *ModelsAdminSessionResponse) Validate(formats strfmt.Registry) error

Validate validates this models admin session response

type ModelsCountActiveSessionResponse added in v0.4.0

type ModelsCountActiveSessionResponse struct {

	// custom game
	// Required: true
	CustomGame *int64 `json:"custom_game"`

	// matchmaking game
	// Required: true
	MatchmakingGame *int64 `json:"matchmaking_game"`

	// total
	// Required: true
	Total *int64 `json:"total"`
}

ModelsCountActiveSessionResponse models count active session response

swagger:model models.CountActiveSessionResponse

func (*ModelsCountActiveSessionResponse) MarshalBinary added in v0.4.0

func (m *ModelsCountActiveSessionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsCountActiveSessionResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsCountActiveSessionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsCountActiveSessionResponse) Validate added in v0.4.0

Validate validates this models count active session response

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

	// session type
	// Required: true
	SessionType *string `json:"session_type"`

	// 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

func (*ModelsCreateSessionRequest) Validate

func (m *ModelsCreateSessionRequest) Validate(formats strfmt.Registry) error

Validate validates this models create session request

type ModelsCustomGameResponse added in v0.4.0

type ModelsCustomGameResponse struct {

	// all players
	// Required: true
	AllPlayers []string `json:"all_players"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at"`

	// game session setting
	// Required: true
	GameSessionSetting *ModelsGameSessionSetting `json:"game_session_setting"`

	// joinable
	// Required: true
	Joinable *bool `json:"joinable"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// players
	// Required: true
	Players []string `json:"players"`

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

	// spectators
	// Required: true
	Spectators []string `json:"spectators"`
}

ModelsCustomGameResponse models custom game response

swagger:model models.CustomGameResponse

func (*ModelsCustomGameResponse) MarshalBinary added in v0.4.0

func (m *ModelsCustomGameResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsCustomGameResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsCustomGameResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsCustomGameResponse) Validate added in v0.4.0

func (m *ModelsCustomGameResponse) Validate(formats strfmt.Registry) error

Validate validates this models custom game response

type ModelsGameSession

type ModelsGameSession struct {

	// all players
	// Required: true
	AllPlayers []string `json:"all_players"`

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

	// players
	// Required: true
	Players []string `json:"players"`

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

	// spectators
	// Required: true
	Spectators []string `json:"spectators"`

	// 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

func (*ModelsGameSession) Validate

func (m *ModelsGameSession) Validate(formats strfmt.Registry) error

Validate validates this models game session

type ModelsGameSessionSetting

type ModelsGameSessionSetting struct {

	// allow join in progress
	// Required: true
	AllowJoinInProgress *bool `json:"allow_join_in_progress"`

	// current internal player
	// Required: true
	CurrentInternalPlayer *int32 `json:"current_internal_player"`

	// current player
	// Required: true
	CurrentPlayer *int32 `json:"current_player"`

	// map name
	// Required: true
	MapName *string `json:"map_name"`

	// max internal player
	// Required: true
	MaxInternalPlayer *int32 `json:"max_internal_player"`

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

	// password
	// Required: true
	Password *string `json:"password"`

	// 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

func (*ModelsGameSessionSetting) Validate

func (m *ModelsGameSessionSetting) Validate(formats strfmt.Registry) error

Validate validates this models game session setting

type ModelsJoinGameSessionRequest added in v0.4.0

type ModelsJoinGameSessionRequest struct {

	// password
	// Required: true
	Password *string `json:"password"`
}

ModelsJoinGameSessionRequest models join game session request

swagger:model models.JoinGameSessionRequest

func (*ModelsJoinGameSessionRequest) MarshalBinary added in v0.4.0

func (m *ModelsJoinGameSessionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsJoinGameSessionRequest) UnmarshalBinary added in v0.4.0

func (m *ModelsJoinGameSessionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsJoinGameSessionRequest) Validate added in v0.4.0

func (m *ModelsJoinGameSessionRequest) Validate(formats strfmt.Registry) error

Validate validates this models join game session request

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

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

	// sub game mode
	// Required: true
	SubGameMode []string `json:"sub_game_mode"`
}

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

func (*ModelsMatchMaking) Validate

func (m *ModelsMatchMaking) Validate(formats strfmt.Registry) error

Validate validates this models match making

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

func (*ModelsMatchingAlly) Validate

func (m *ModelsMatchingAlly) Validate(formats strfmt.Registry) error

Validate validates this models matching ally

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

func (*ModelsMatchingParty) Validate

func (m *ModelsMatchingParty) Validate(formats strfmt.Registry) error

Validate validates this models matching party

type ModelsPagingCursor added in v0.4.0

type ModelsPagingCursor struct {

	// next
	// Required: true
	Next *string `json:"next"`

	// previous
	// Required: true
	Previous *string `json:"previous"`
}

ModelsPagingCursor models paging cursor

swagger:model models.PagingCursor

func (*ModelsPagingCursor) MarshalBinary added in v0.4.0

func (m *ModelsPagingCursor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsPagingCursor) UnmarshalBinary added in v0.4.0

func (m *ModelsPagingCursor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsPagingCursor) Validate added in v0.4.0

func (m *ModelsPagingCursor) Validate(formats strfmt.Registry) error

Validate validates this models paging cursor

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

func (*ModelsPartyMember) Validate

func (m *ModelsPartyMember) Validate(formats strfmt.Registry) error

Validate validates this models party member

type ModelsRecentPlayerHistory added in v0.4.0

type ModelsRecentPlayerHistory struct {

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// other display name
	// Required: true
	OtherDisplayName *string `json:"other_display_name"`

	// other id
	// Required: true
	OtherID *string `json:"other_id"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at"`

	// user id
	// Required: true
	UserID *string `json:"user_id"`
}

ModelsRecentPlayerHistory models recent player history

swagger:model models.RecentPlayerHistory

func (*ModelsRecentPlayerHistory) MarshalBinary added in v0.4.0

func (m *ModelsRecentPlayerHistory) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsRecentPlayerHistory) UnmarshalBinary added in v0.4.0

func (m *ModelsRecentPlayerHistory) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsRecentPlayerHistory) Validate added in v0.4.0

func (m *ModelsRecentPlayerHistory) Validate(formats strfmt.Registry) error

Validate validates this models recent player history

type ModelsRecentPlayerQueryResponse added in v0.4.0

type ModelsRecentPlayerQueryResponse struct {

	// data
	// Required: true
	Data []*ModelsRecentPlayerHistory `json:"data"`
}

ModelsRecentPlayerQueryResponse models recent player query response

swagger:model models.RecentPlayerQueryResponse

func (*ModelsRecentPlayerQueryResponse) MarshalBinary added in v0.4.0

func (m *ModelsRecentPlayerQueryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelsRecentPlayerQueryResponse) UnmarshalBinary added in v0.4.0

func (m *ModelsRecentPlayerQueryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelsRecentPlayerQueryResponse) Validate added in v0.4.0

Validate validates this models recent player query response

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

func (*ModelsServer) Validate

func (m *ModelsServer) Validate(formats strfmt.Registry) error

Validate validates this models server

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

func (*ModelsSessionByUserIDsResponse) Validate

func (m *ModelsSessionByUserIDsResponse) Validate(formats strfmt.Registry) error

Validate validates this models session by user i ds response

type ModelsSessionQueryResponse

type ModelsSessionQueryResponse struct {

	// pagination
	// Required: true
	Pagination *ModelsPagingCursor `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

func (*ModelsSessionQueryResponse) Validate

func (m *ModelsSessionQueryResponse) Validate(formats strfmt.Registry) error

Validate validates this models session query response

type ModelsSessionResponse

type ModelsSessionResponse struct {

	// all players
	// Required: true
	AllPlayers []string `json:"all_players"`

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

	// players
	// Required: true
	Players []string `json:"players"`

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

	// spectators
	// Required: true
	Spectators []string `json:"spectators"`

	// 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

func (*ModelsSessionResponse) Validate

func (m *ModelsSessionResponse) Validate(formats strfmt.Registry) error

Validate validates this models session response

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

func (*ModelsStatusHistory) Validate

func (m *ModelsStatusHistory) Validate(formats strfmt.Registry) error

Validate validates this models status history

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

func (*ModelsUpdateSessionRequest) Validate

func (m *ModelsUpdateSessionRequest) Validate(formats strfmt.Registry) error

Validate validates this models update session request

type ModelsUpdateSettingsRequest added in v0.18.0

type ModelsUpdateSettingsRequest interface{}

ModelsUpdateSettingsRequest models update settings request

swagger:model models.UpdateSettingsRequest

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

func (*ResponseError) Validate

func (m *ResponseError) Validate(formats strfmt.Registry) error

Validate validates this response error

type RestapiErrorResponseV2 added in v0.4.0

type RestapiErrorResponseV2 struct {

	// attributes
	// Required: true
	Attributes map[string]string `json:"attributes"`

	// error code
	// Required: true
	ErrorCode *int32 `json:"errorCode"`

	// error message
	// Required: true
	ErrorMessage *string `json:"errorMessage"`

	// message
	// Required: true
	Message *string `json:"message"`

	// name
	// Required: true
	Name *string `json:"name"`
}

RestapiErrorResponseV2 restapi error response v2

swagger:model restapi.ErrorResponseV2

func (*RestapiErrorResponseV2) MarshalBinary added in v0.4.0

func (m *RestapiErrorResponseV2) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiErrorResponseV2) UnmarshalBinary added in v0.4.0

func (m *RestapiErrorResponseV2) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiErrorResponseV2) Validate added in v0.4.0

func (m *RestapiErrorResponseV2) Validate(formats strfmt.Registry) error

Validate validates this restapi error response v2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL