Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCatType = []CatType{ CatTypeHome, CatTypeStreet, }
View Source
var AllClass = []Class{ ClassFish, ClassMammal, ClassReptile, }
View Source
var AllDogBreed = []DogBreed{ DogBreedGoldenRetriever, DogBreedPoodle, DogBreedRottweiler, DogBreedYorkshireTerrier, }
View Source
var AllGender = []Gender{ GenderFemale, GenderMale, GenderUnknown, }
View Source
var AllMaritalStatus = []MaritalStatus{ MaritalStatusEngaged, MaritalStatusMarried, }
View Source
var AllNationality = []Nationality{ NationalityAmerican, NationalityDutch, NationalityEnglish, NationalityGerman, NationalityIndian, NationalitySpanish, NationalityUkrainian, }
Functions ¶
This section is empty.
Types ¶
type Alligator ¶
type Cat ¶
type Details ¶
type Details struct { Forename string `json:"forename"` Middlename *string `json:"middlename,omitempty"` Surname string `json:"surname"` HasChildren bool `json:"hasChildren"` MaritalStatus *MaritalStatus `json:"maritalStatus,omitempty"` Nationality Nationality `json:"nationality"` Pets []Pet `json:"pets,omitempty"` }
type Dog ¶
type MaritalStatus ¶
type MaritalStatus string
const ( MaritalStatusEngaged MaritalStatus = "ENGAGED" MaritalStatusMarried MaritalStatus = "MARRIED" )
func (MaritalStatus) IsValid ¶
func (e MaritalStatus) IsValid() bool
func (MaritalStatus) MarshalGQL ¶
func (e MaritalStatus) MarshalGQL(w io.Writer)
func (MaritalStatus) String ¶
func (e MaritalStatus) String() string
func (*MaritalStatus) UnmarshalGQL ¶
func (e *MaritalStatus) UnmarshalGQL(v interface{}) error
type Mouse ¶
type Nationality ¶
type Nationality string
const ( NationalityAmerican Nationality = "AMERICAN" NationalityDutch Nationality = "DUTCH" NationalityEnglish Nationality = "ENGLISH" NationalityGerman Nationality = "GERMAN" NationalityIndian Nationality = "INDIAN" NationalitySpanish Nationality = "SPANISH" NationalityUkrainian Nationality = "UKRAINIAN" )
func (Nationality) IsValid ¶
func (e Nationality) IsValid() bool
func (Nationality) MarshalGQL ¶
func (e Nationality) MarshalGQL(w io.Writer)
func (Nationality) String ¶
func (e Nationality) String() string
func (*Nationality) UnmarshalGQL ¶
func (e *Nationality) UnmarshalGQL(v interface{}) error
type NestedSearchInput ¶
type NestedSearchInput struct { MaritalStatus *MaritalStatus `json:"maritalStatus,omitempty"` HasChildren *bool `json:"hasChildren,omitempty"` }
type Pony ¶
type SearchInput ¶
type SearchInput struct { HasPets *bool `json:"hasPets,omitempty"` Nationality *Nationality `json:"nationality,omitempty"` Nested *NestedSearchInput `json:"nested,omitempty"` }
Click to show internal directories.
Click to hide internal directories.