model

package
v0.0.0-...-3487113 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Constellation

type Constellation struct {
	ID        string            `json:"id"`
	CreatedAt string            `json:"createdAt"`
	UpdatedAt *string           `json:"updatedAt"`
	Name      *string           `json:"name"`
	Galaxies  *GalaxyConnection `json:"galaxies"`
}

func (Constellation) IsNode

func (Constellation) IsNode()

type ConstellationConnection

type ConstellationConnection struct {
	Nodes      []*Constellation     `json:"nodes"`
	Edges      []*ConstellationEdge `json:"edges"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

type ConstellationEdge

type ConstellationEdge struct {
	Cursor string         `json:"cursor"`
	Node   *Constellation `json:"node"`
}

type CreateConstellationInput

type CreateConstellationInput struct {
	Name string `json:"name"`
}

type CreateConstellationPayload

type CreateConstellationPayload struct {
	Constellation *Constellation `json:"constellation"`
}

type CreateConstellationsPayload

type CreateConstellationsPayload struct {
	Constellations []*Constellation `json:"constellations"`
}

type Galaxy

type Galaxy struct {
	ID        string            `json:"id"`
	CreatedAt string            `json:"createdAt"`
	UpdatedAt *string           `json:"updatedAt"`
	Name      *string           `json:"name"`
	Planets   *PlanetConnection `json:"planets"`
	Stars     *StarConnection   `json:"stars"`
}

func (Galaxy) IsNode

func (Galaxy) IsNode()

type GalaxyConnection

type GalaxyConnection struct {
	Nodes      []*Galaxy     `json:"nodes"`
	Edges      []*GalaxyEdge `json:"edges"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

type GalaxyEdge

type GalaxyEdge struct {
	Cursor string  `json:"cursor"`
	Node   *Galaxy `json:"node"`
}

type NewTodo

type NewTodo struct {
	Text   string `json:"text"`
	UserID string `json:"userId"`
}

type Node

type Node interface {
	IsNode()
}

An object with an ID

type PageInfo

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

type Planet

type Planet struct {
	ID          string          `json:"id"`
	CreatedAt   string          `json:"createdAt"`
	UpdatedAt   *string         `json:"updatedAt"`
	Name        *string         `json:"name"`
	Description *string         `json:"description"`
	PlanetType  *PlanetTypeEnum `json:"planetType"`
	Galaxy      *Galaxy         `json:"galaxy"`
}

func (Planet) IsNode

func (Planet) IsNode()

type PlanetConnection

type PlanetConnection struct {
	Nodes      []*Planet     `json:"nodes"`
	Edges      []*PlanetEdge `json:"edges"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

type PlanetEdge

type PlanetEdge struct {
	Cursor string  `json:"cursor"`
	Node   *Planet `json:"node"`
}

type PlanetTypeEnum

type PlanetTypeEnum string
const (
	PlanetTypeEnumDoublePlanet  PlanetTypeEnum = "DOUBLE_PLANET"
	PlanetTypeEnumDwarfPlanet   PlanetTypeEnum = "DWARF_PLANET"
	PlanetTypeEnumExoplanet     PlanetTypeEnum = "EXOPLANET"
	PlanetTypeEnumExtragalactic PlanetTypeEnum = "EXTRAGALACTIC"
	PlanetTypeEnumMajorPlanet   PlanetTypeEnum = "MAJOR_PLANET"
	PlanetTypeEnumOuterPlanet   PlanetTypeEnum = "OUTER_PLANET"
	PlanetTypeEnumPulsarPlanet  PlanetTypeEnum = "PULSAR_PLANET"
	PlanetTypeEnumRoguePlanet   PlanetTypeEnum = "ROGUE_PLANET"
)

func (PlanetTypeEnum) IsValid

func (e PlanetTypeEnum) IsValid() bool

func (PlanetTypeEnum) MarshalGQL

func (e PlanetTypeEnum) MarshalGQL(w io.Writer)

func (PlanetTypeEnum) String

func (e PlanetTypeEnum) String() string

func (*PlanetTypeEnum) UnmarshalGQL

func (e *PlanetTypeEnum) UnmarshalGQL(v interface{}) error

type Star

type Star struct {
	ID        string            `json:"id"`
	CreatedAt string            `json:"createdAt"`
	UpdatedAt *string           `json:"updatedAt"`
	Name      *string           `json:"name"`
	Class     *StellarClassEnum `json:"class"`
}

func (Star) IsNode

func (Star) IsNode()

type StarConnection

type StarConnection struct {
	Nodes      []*Star     `json:"nodes"`
	Edges      []*StarEdge `json:"edges"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type StarEdge

type StarEdge struct {
	Cursor string `json:"cursor"`
	Node   *Star  `json:"node"`
}

type StellarClassEnum

type StellarClassEnum string
const (
	StellarClassEnumClass0 StellarClassEnum = "CLASS_0"
	StellarClassEnumClassA StellarClassEnum = "CLASS_A"
	StellarClassEnumClassB StellarClassEnum = "CLASS_B"
)

func (StellarClassEnum) IsValid

func (e StellarClassEnum) IsValid() bool

func (StellarClassEnum) MarshalGQL

func (e StellarClassEnum) MarshalGQL(w io.Writer)

func (StellarClassEnum) String

func (e StellarClassEnum) String() string

func (*StellarClassEnum) UnmarshalGQL

func (e *StellarClassEnum) UnmarshalGQL(v interface{}) error

type Todo

type Todo struct {
	ID     string `json:"id"`
	Text   string `json:"text"`
	Done   bool   `json:"done"`
	UserID string `json:"user"`
}

type User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

A user in the system

Jump to

Keyboard shortcuts

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