models

package
v0.0.0-...-4880841 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// GameStatusRUNNING captures enum value "RUNNING"
	GameStatusRUNNING string = "RUNNING"

	// GameStatusXWON captures enum value "X_WON"
	GameStatusXWON string = "X_WON"

	// GameStatusOWON captures enum value "O_WON"
	GameStatusOWON string = "O_WON"

	// GameStatusDRAW captures enum value "DRAW"
	GameStatusDRAW string = "DRAW"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {

	// The board state
	// Required: true
	Board *string `json:"board"`

	// The game's UUID, read-only, generated by the server. The client can not POST or PUT this.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// The game status, read-only, the client can not POST or PUT this
	// Read Only: true
	// Enum: [RUNNING X_WON O_WON DRAW]
	Status string `json:"status,omitempty"`
}

Game A game object swagger:model game

func (*Game) MarshalBinary

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

MarshalBinary interface implementation

func (*Game) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Game) Validate

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

Validate validates this game

Jump to

Keyboard shortcuts

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