integration

package
v0.0.0-...-5484126 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoRoot

func RepoRoot(t *testing.T) string

RepoRoot returns the root of the genqlient repository,

func RunGenerateTest

func RunGenerateTest(t *testing.T, relConfigFilename string)

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) GetHair

GetHair returns AnimalFields.Hair, and is useful for accessing the field via an interface.

func (*AnimalFields) GetId

func (v *AnimalFields) GetId() string

GetId returns AnimalFields.Id, and is useful for accessing the field via an interface.

func (*AnimalFields) GetOwner

func (v *AnimalFields) GetOwner() AnimalFieldsOwnerBeing

GetOwner returns AnimalFields.Owner, and is useful for accessing the field via an interface.

func (*AnimalFields) MarshalJSON

func (v *AnimalFields) MarshalJSON() ([]byte, error)

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.

func (*AnimalFieldsHairBeingsHair) GetHasHair

func (v *AnimalFieldsHairBeingsHair) GetHasHair() bool

GetHasHair returns AnimalFieldsHairBeingsHair.HasHair, and is useful for accessing the field via an interface.

type AnimalFieldsOwnerAnimal

type AnimalFieldsOwnerAnimal struct {
	Typename string `json:"__typename"`
	Id       string `json:"id"`
}

AnimalFieldsOwnerAnimal includes the requested fields of the GraphQL type Animal.

func (*AnimalFieldsOwnerAnimal) GetId

func (v *AnimalFieldsOwnerAnimal) GetId() string

GetId returns AnimalFieldsOwnerAnimal.Id, and is useful for accessing the field via an interface.

func (*AnimalFieldsOwnerAnimal) GetTypename

func (v *AnimalFieldsOwnerAnimal) GetTypename() string

GetTypename returns AnimalFieldsOwnerAnimal.Typename, and is useful for accessing the field via an interface.

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: AnimalFieldsOwnerAnimal AnimalFieldsOwnerUser

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) GetHair

GetHair returns AnimalFieldsOwnerUser.Hair, and is useful for accessing the field via an interface.

func (*AnimalFieldsOwnerUser) GetId

func (v *AnimalFieldsOwnerUser) GetId() string

GetId returns AnimalFieldsOwnerUser.Id, and is useful for accessing the field via an interface.

func (*AnimalFieldsOwnerUser) GetLuckyNumber

func (v *AnimalFieldsOwnerUser) GetLuckyNumber() int

GetLuckyNumber returns AnimalFieldsOwnerUser.LuckyNumber, and is useful for accessing the field via an interface.

func (*AnimalFieldsOwnerUser) GetTypename

func (v *AnimalFieldsOwnerUser) GetTypename() string

GetTypename returns AnimalFieldsOwnerUser.Typename, and is useful for accessing the field via an interface.

func (*AnimalFieldsOwnerUser) MarshalJSON

func (v *AnimalFieldsOwnerUser) MarshalJSON() ([]byte, error)

func (*AnimalFieldsOwnerUser) UnmarshalJSON

func (v *AnimalFieldsOwnerUser) UnmarshalJSON(b []byte) error

type FriendsFields

type FriendsFields struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

FriendsFields includes the GraphQL fields of User requested by the fragment FriendsFields.

func (*FriendsFields) GetId

func (v *FriendsFields) GetId() string

GetId returns FriendsFields.Id, and is useful for accessing the field via an interface.

func (*FriendsFields) GetName

func (v *FriendsFields) GetName() string

GetName returns FriendsFields.Name, and is useful for accessing the field via an interface.

type InnerBeingFields

type InnerBeingFields interface {

	// GetId returns the interface-field "id" from its implementation.
	GetId() string
	// GetName returns the interface-field "name" from its implementation.
	GetName() string
	// contains filtered or unexported methods
}

InnerBeingFields includes the GraphQL fields of Being requested by the fragment InnerBeingFields.

InnerBeingFields is implemented by the following types: InnerBeingFieldsAnimal InnerBeingFieldsUser

type InnerBeingFieldsAnimal

type InnerBeingFieldsAnimal struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

InnerBeingFields includes the GraphQL fields of Animal requested by the fragment InnerBeingFields.

func (*InnerBeingFieldsAnimal) GetId

func (v *InnerBeingFieldsAnimal) GetId() string

GetId returns InnerBeingFieldsAnimal.Id, and is useful for accessing the field via an interface.

func (*InnerBeingFieldsAnimal) GetName

func (v *InnerBeingFieldsAnimal) GetName() string

GetName returns InnerBeingFieldsAnimal.Name, and is useful for accessing the field via an interface.

type InnerBeingFieldsUser

type InnerBeingFieldsUser struct {
	Id      string          `json:"id"`
	Name    string          `json:"name"`
	Friends []FriendsFields `json:"friends"`
}

InnerBeingFields includes the GraphQL fields of User requested by the fragment InnerBeingFields.

func (*InnerBeingFieldsUser) GetFriends

func (v *InnerBeingFieldsUser) GetFriends() []FriendsFields

GetFriends returns InnerBeingFieldsUser.Friends, and is useful for accessing the field via an interface.

func (*InnerBeingFieldsUser) GetId

func (v *InnerBeingFieldsUser) GetId() string

GetId returns InnerBeingFieldsUser.Id, and is useful for accessing the field via an interface.

func (*InnerBeingFieldsUser) GetName

func (v *InnerBeingFieldsUser) GetName() string

GetName returns InnerBeingFieldsUser.Name, and is useful for accessing the field via an interface.

type InnerLuckyFields

type InnerLuckyFields interface {

	// GetLuckyNumber returns the interface-field "luckyNumber" from its implementation.
	GetLuckyNumber() int
	// contains filtered or unexported methods
}

InnerLuckyFields includes the GraphQL fields of Lucky requested by the fragment InnerLuckyFields.

InnerLuckyFields is implemented by the following types: InnerLuckyFieldsUser

type InnerLuckyFieldsUser

type InnerLuckyFieldsUser struct {
	LuckyNumber int `json:"luckyNumber"`
}

InnerLuckyFields includes the GraphQL fields of User requested by the fragment InnerLuckyFields.

func (*InnerLuckyFieldsUser) GetLuckyNumber

func (v *InnerLuckyFieldsUser) GetLuckyNumber() int

GetLuckyNumber returns InnerLuckyFieldsUser.LuckyNumber, and is useful for accessing the field via an interface.

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) GetHair

func (v *LuckyFieldsUser) GetHair() MoreUserFieldsHair

GetHair returns LuckyFieldsUser.Hair, and is useful for accessing the field via an interface.

func (*LuckyFieldsUser) GetId

func (v *LuckyFieldsUser) GetId() string

GetId returns LuckyFieldsUser.Id, and is useful for accessing the field via an interface.

func (*LuckyFieldsUser) GetLuckyNumber

func (v *LuckyFieldsUser) GetLuckyNumber() int

GetLuckyNumber returns LuckyFieldsUser.LuckyNumber, and is useful for accessing the field via an interface.

func (*LuckyFieldsUser) MarshalJSON

func (v *LuckyFieldsUser) MarshalJSON() ([]byte, error)

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.

func (*MoreUserFields) GetHair

func (v *MoreUserFields) GetHair() MoreUserFieldsHair

GetHair returns MoreUserFields.Hair, and is useful for accessing the field via an interface.

func (*MoreUserFields) GetId

func (v *MoreUserFields) GetId() string

GetId returns MoreUserFields.Id, and is useful for accessing the field via an interface.

type MoreUserFieldsHair

type MoreUserFieldsHair struct {
	Color string `json:"color"`
}

MoreUserFieldsHair includes the requested fields of the GraphQL type Hair.

func (*MoreUserFieldsHair) GetColor

func (v *MoreUserFieldsHair) GetColor() string

GetColor returns MoreUserFieldsHair.Color, and is useful for accessing the field via an interface.

type NewUser

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

func (*NewUser) GetName

func (v *NewUser) GetName() string

GetName returns NewUser.Name, and is useful for accessing the field via an interface.

type QueryFragment

type QueryFragment struct {
	Beings []QueryFragmentBeingsBeing `json:"-"`
}

QueryFragment includes the GraphQL fields of Query requested by the fragment QueryFragment.

func (*QueryFragment) GetBeings

func (v *QueryFragment) GetBeings() []QueryFragmentBeingsBeing

GetBeings returns QueryFragment.Beings, and is useful for accessing the field via an interface.

func (*QueryFragment) MarshalJSON

func (v *QueryFragment) MarshalJSON() ([]byte, error)

func (*QueryFragment) UnmarshalJSON

func (v *QueryFragment) UnmarshalJSON(b []byte) error

type QueryFragmentBeingsAnimal

type QueryFragmentBeingsAnimal struct {
	Typename string           `json:"__typename"`
	Id       string           `json:"id"`
	Owner    InnerBeingFields `json:"-"`
}

QueryFragmentBeingsAnimal includes the requested fields of the GraphQL type Animal.

func (*QueryFragmentBeingsAnimal) GetId

func (v *QueryFragmentBeingsAnimal) GetId() string

GetId returns QueryFragmentBeingsAnimal.Id, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsAnimal) GetOwner

GetOwner returns QueryFragmentBeingsAnimal.Owner, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsAnimal) GetTypename

func (v *QueryFragmentBeingsAnimal) GetTypename() string

GetTypename returns QueryFragmentBeingsAnimal.Typename, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsAnimal) MarshalJSON

func (v *QueryFragmentBeingsAnimal) MarshalJSON() ([]byte, error)

func (*QueryFragmentBeingsAnimal) UnmarshalJSON

func (v *QueryFragmentBeingsAnimal) UnmarshalJSON(b []byte) error

type QueryFragmentBeingsBeing

type QueryFragmentBeingsBeing 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
}

QueryFragmentBeingsBeing includes the requested fields of the GraphQL interface Being.

QueryFragmentBeingsBeing is implemented by the following types: QueryFragmentBeingsAnimal QueryFragmentBeingsUser

type QueryFragmentBeingsUser

type QueryFragmentBeingsUser struct {
	Typename             string `json:"__typename"`
	Id                   string `json:"id"`
	InnerLuckyFieldsUser `json:"-"`
}

QueryFragmentBeingsUser includes the requested fields of the GraphQL type User.

func (*QueryFragmentBeingsUser) GetId

func (v *QueryFragmentBeingsUser) GetId() string

GetId returns QueryFragmentBeingsUser.Id, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsUser) GetLuckyNumber

func (v *QueryFragmentBeingsUser) GetLuckyNumber() int

GetLuckyNumber returns QueryFragmentBeingsUser.LuckyNumber, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsUser) GetTypename

func (v *QueryFragmentBeingsUser) GetTypename() string

GetTypename returns QueryFragmentBeingsUser.Typename, and is useful for accessing the field via an interface.

func (*QueryFragmentBeingsUser) MarshalJSON

func (v *QueryFragmentBeingsUser) MarshalJSON() ([]byte, error)

func (*QueryFragmentBeingsUser) UnmarshalJSON

func (v *QueryFragmentBeingsUser) UnmarshalJSON(b []byte) error

type Species

type Species string
const (
	SpeciesDog        Species = "DOG"
	SpeciesCoelacanth Species = "COELACANTH"
)

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) GetHair

func (v *UserFields) GetHair() MoreUserFieldsHair

GetHair returns UserFields.Hair, and is useful for accessing the field via an interface.

func (*UserFields) GetId

func (v *UserFields) GetId() string

GetId returns UserFields.Id, and is useful for accessing the field via an interface.

func (*UserFields) GetLuckyNumber

func (v *UserFields) GetLuckyNumber() int

GetLuckyNumber returns UserFields.LuckyNumber, and is useful for accessing the field via an interface.

func (*UserFields) MarshalJSON

func (v *UserFields) MarshalJSON() ([]byte, error)

func (*UserFields) UnmarshalJSON

func (v *UserFields) UnmarshalJSON(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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