models

package
v0.0.0-...-c761d76 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 6 Imported by: 0

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

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

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

func (*GameDescription) Validate

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

Validate validates this game description

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

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

MarshalBinary interface implementation

func (*GameState) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GameState) Validate

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

Validate validates this game state

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

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

MarshalBinary interface implementation

func (*Point) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Point) Validate

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

Validate validates this point

Jump to

Keyboard shortcuts

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