Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GameDescriptionStatusACTIVE captures enum value "ACTIVE" GameDescriptionStatusACTIVE string = "ACTIVE" // GameDescriptionStatusPAUSED captures enum value "PAUSED" GameDescriptionStatusPAUSED string = "PAUSED" // GameDescriptionStatusFINISHED captures enum value "FINISHED" GameDescriptionStatusFINISHED string = "FINISHED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// message
// Required: true
Message *string `json:"message"`
// path
Path string `json:"path,omitempty"`
}
Error error swagger:model error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GameDescription ¶
type GameDescription struct {
// Game ID
ID string `json:"id,omitempty"`
// Status of the game
// Enum: [ACTIVE PAUSED FINISHED]
Status string `json:"status,omitempty"`
}
GameDescription game description swagger:model gameDescription
func (*GameDescription) MarshalBinary ¶
func (m *GameDescription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GameDescription) UnmarshalBinary ¶
func (m *GameDescription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GameState ¶
type GameState struct {
// Pinguin count
Count int64 `json:"count,omitempty"`
// Ship count
CountFarm int64 `json:"countFarm,omitempty"`
// Ship count
CountShip int64 `json:"countShip,omitempty"`
// farms
Farms []*Point `json:"farms"`
// ships
Ships []*Point `json:"ships"`
}
GameState game state swagger:model gameState
func (*GameState) MarshalBinary ¶
MarshalBinary interface implementation
func (*GameState) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Point ¶
type Point struct {
// lat
Lat float64 `json:"lat,omitempty"`
// lng
Lng float64 `json:"lng,omitempty"`
}
Point point swagger:model point
func (*Point) MarshalBinary ¶
MarshalBinary interface implementation
func (*Point) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Click to show internal directories.
Click to hide internal directories.