model

package
v0.0.0-...-2b2b3c0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board = database.Board

type Game

type Game struct {
	ID    string `json:"id"`
	Board Board  `json:"board"`
}

type GamesConnection

type GamesConnection struct {
	Edges    []*Game   `json:"edges"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type GamesEdge

type GamesEdge struct {
	Cursor string `json:"cursor"`
	Node   *Game  `json:"node"`
}

type PageInfo

type PageInfo struct {
	StartCursor string `json:"startCursor"`
	EndCursor   string `json:"endCursor"`
	HasNextPage *bool  `json:"hasNextPage"`
}

type Player

type Player struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Words []*Word `json:"words"`
}

type PlayersConnection

type PlayersConnection struct {
	Edges    []*Player `json:"edges"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type PlayersEdge

type PlayersEdge struct {
	Cursor string `json:"cursor"`
	Node   *Game  `json:"node"`
}

type Point

type Point database.Point

func (Point) MarshalGQL

func (p Point) MarshalGQL(w io.Writer)

func (*Point) UnmarshalGQL

func (p *Point) UnmarshalGQL(v interface{}) error

type Word

type Word struct {
	ID      string    `json:"id"`
	Game    *Game     `json:"game"`
	Path    []Point   `json:"path"`
	Players []*Player `json:"players"`
}

type WordsConnection

type WordsConnection struct {
	Edges    []*Word   `json:"edges"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type WordsEdge

type WordsEdge struct {
	Cursor string `json:"cursor"`
	Node   *Word  `json:"node"`
}

Jump to

Keyboard shortcuts

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