Documentation
¶
Index ¶
- func RepoRoot(t *testing.T) string
- func RunGenerateTest(t *testing.T, relConfigFilename string)
- type AnimalFields
- type AnimalFieldsHairBeingsHair
- type AnimalFieldsOwnerAnimal
- type AnimalFieldsOwnerBeing
- type AnimalFieldsOwnerUser
- type LuckyFields
- type LuckyFieldsUser
- type MoreUserFields
- type MoreUserFieldsHair
- type Species
- type UserFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGenerateTest ¶
RunGenerateTest checks that running genqlient with the given repo-root-relative config file would not produce any changes to the checked-in files.
Types ¶
type AnimalFields ¶
type AnimalFields struct {
Id string `json:"id"`
Hair AnimalFieldsHairBeingsHair `json:"hair"`
Owner AnimalFieldsOwnerBeing `json:"-"`
}
AnimalFields includes the GraphQL fields of Animal requested by the fragment AnimalFields.
func (*AnimalFields) UnmarshalJSON ¶
func (v *AnimalFields) UnmarshalJSON(b []byte) error
type AnimalFieldsHairBeingsHair ¶
type AnimalFieldsHairBeingsHair struct {
HasHair bool `json:"hasHair"`
}
AnimalFieldsHairBeingsHair includes the requested fields of the GraphQL type BeingsHair.
type AnimalFieldsOwnerAnimal ¶
AnimalFieldsOwnerAnimal includes the requested fields of the GraphQL type Animal.
func (*AnimalFieldsOwnerAnimal) GetId ¶
func (v *AnimalFieldsOwnerAnimal) GetId() string
GetId is a part of, and documented with, the interface AnimalFieldsOwnerBeing.
func (*AnimalFieldsOwnerAnimal) GetTypename ¶
func (v *AnimalFieldsOwnerAnimal) GetTypename() string
GetTypename is a part of, and documented with, the interface AnimalFieldsOwnerBeing.
type AnimalFieldsOwnerBeing ¶
type AnimalFieldsOwnerBeing interface {
// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
GetTypename() string
// GetId returns the interface-field "id" from its implementation.
GetId() string
// contains filtered or unexported methods
}
AnimalFieldsOwnerBeing includes the requested fields of the GraphQL interface Being.
AnimalFieldsOwnerBeing is implemented by the following types: AnimalFieldsOwnerUser AnimalFieldsOwnerAnimal
type AnimalFieldsOwnerUser ¶
type AnimalFieldsOwnerUser struct {
Typename string `json:"__typename"`
Id string `json:"id"`
UserFields `json:"-"`
LuckyFieldsUser `json:"-"`
}
AnimalFieldsOwnerUser includes the requested fields of the GraphQL type User.
func (*AnimalFieldsOwnerUser) GetId ¶
func (v *AnimalFieldsOwnerUser) GetId() string
GetId is a part of, and documented with, the interface AnimalFieldsOwnerBeing.
func (*AnimalFieldsOwnerUser) GetTypename ¶
func (v *AnimalFieldsOwnerUser) GetTypename() string
GetTypename is a part of, and documented with, the interface AnimalFieldsOwnerBeing.
func (*AnimalFieldsOwnerUser) UnmarshalJSON ¶
func (v *AnimalFieldsOwnerUser) UnmarshalJSON(b []byte) error
type LuckyFields ¶
type LuckyFields interface {
// GetLuckyNumber returns the interface-field "luckyNumber" from its implementation.
GetLuckyNumber() int
// contains filtered or unexported methods
}
LuckyFields includes the GraphQL fields of Lucky requested by the fragment LuckyFields.
LuckyFields is implemented by the following types: LuckyFieldsUser
type LuckyFieldsUser ¶
type LuckyFieldsUser struct {
MoreUserFields `json:"-"`
LuckyNumber int `json:"luckyNumber"`
}
LuckyFields includes the GraphQL fields of User requested by the fragment LuckyFields.
func (*LuckyFieldsUser) GetLuckyNumber ¶
func (v *LuckyFieldsUser) GetLuckyNumber() int
GetLuckyNumber is a part of, and documented with, the interface LuckyFields.
func (*LuckyFieldsUser) UnmarshalJSON ¶
func (v *LuckyFieldsUser) UnmarshalJSON(b []byte) error
type MoreUserFields ¶
type MoreUserFields struct {
Id string `json:"id"`
Hair MoreUserFieldsHair `json:"hair"`
}
MoreUserFields includes the GraphQL fields of User requested by the fragment MoreUserFields.
type MoreUserFieldsHair ¶
type MoreUserFieldsHair struct {
Color string `json:"color"`
}
MoreUserFieldsHair includes the requested fields of the GraphQL type Hair.
type UserFields ¶
type UserFields struct {
Id string `json:"id"`
LuckyFieldsUser `json:"-"`
MoreUserFields `json:"-"`
}
UserFields includes the GraphQL fields of User requested by the fragment UserFields.
func (*UserFields) UnmarshalJSON ¶
func (v *UserFields) UnmarshalJSON(b []byte) error