Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCountry = []Country{ CountryChina, CountrySwiss, CountrySpain, CountryPoland, }
View Source
var AllGenderType = []GenderType{ GenderTypeMale, GenderTypeFemale, }
Functions ¶
This section is empty.
Types ¶
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"` }
Click to show internal directories.
Click to hide internal directories.