model

package
v0.0.0-...-e9e1c72 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Country

type Country string
const (
	CountryChina  Country = "CHINA"
	CountrySwiss  Country = "SWISS"
	CountrySpain  Country = "SPAIN"
	CountryPoland Country = "POLAND"
)

func (Country) IsValid

func (e Country) IsValid() bool

func (Country) MarshalGQL

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

func (Country) String

func (e Country) String() string

func (*Country) UnmarshalGQL

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

type GenderType

type GenderType string
const (
	GenderTypeMale   GenderType = "MALE"
	GenderTypeFemale GenderType = "FEMALE"
)

func (GenderType) IsValid

func (e GenderType) IsValid() bool

func (GenderType) MarshalGQL

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

func (GenderType) String

func (e GenderType) String() string

func (*GenderType) UnmarshalGQL

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

type Player

type Player struct {
	ID      string     `json:"id"`
	First   string     `json:"First"`
	Last    string     `json:"Last"`
	Country Country    `json:"Country"`
	Gender  GenderType `json:"Gender"`
}

type PlayerInput

type PlayerInput struct {
	First   string     `json:"First"`
	Last    string     `json:"Last"`
	Country Country    `json:"Country"`
	Gender  GenderType `json:"Gender"`
}

Jump to

Keyboard shortcuts

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