out

package
v0.17.45 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type A added in v0.17.0

type A interface {
	IsA()
	GetA() string
}

type ArrayOfA added in v0.17.15

type ArrayOfA interface {
	IsArrayOfA()
	GetTrickyField() []A
	GetTrickyFieldPointer() []A
}

type B added in v0.17.0

type B interface {
	IsB()
	GetB() int
}

type C added in v0.17.0

type C interface {
	IsA()
	IsC()
	GetA() string
	GetC() bool
}

type CDImplemented added in v0.17.1

type CDImplemented struct {
	A string  `json:"a" database:"CDImplementeda"`
	B int     `json:"b" database:"CDImplementedb"`
	C bool    `json:"c" database:"CDImplementedc"`
	D *string `json:"d,omitempty" database:"CDImplementedd"`
}

func (CDImplemented) GetA added in v0.17.14

func (this CDImplemented) GetA() string

func (CDImplemented) GetB added in v0.17.14

func (this CDImplemented) GetB() int

func (CDImplemented) GetC added in v0.17.14

func (this CDImplemented) GetC() bool

func (CDImplemented) GetD added in v0.17.14

func (this CDImplemented) GetD() *string

func (CDImplemented) IsA added in v0.17.1

func (CDImplemented) IsA()

func (CDImplemented) IsB added in v0.17.1

func (CDImplemented) IsB()

func (CDImplemented) IsC added in v0.17.1

func (CDImplemented) IsC()

func (CDImplemented) IsD added in v0.17.1

func (CDImplemented) IsD()

type CyclicalA added in v0.17.10

type CyclicalA struct {
	FieldOne   *CyclicalB `json:"field_one,omitempty" database:"CyclicalAfield_one"`
	FieldTwo   *CyclicalB `json:"field_two,omitempty" database:"CyclicalAfield_two"`
	FieldThree *CyclicalB `json:"field_three,omitempty" database:"CyclicalAfield_three"`
	FieldFour  string     `json:"field_four" database:"CyclicalAfield_four"`
}

type CyclicalB added in v0.17.10

type CyclicalB struct {
	FieldOne   *CyclicalA `json:"field_one,omitempty" database:"CyclicalBfield_one"`
	FieldTwo   *CyclicalA `json:"field_two,omitempty" database:"CyclicalBfield_two"`
	FieldThree *CyclicalA `json:"field_three,omitempty" database:"CyclicalBfield_three"`
	FieldFour  *CyclicalA `json:"field_four,omitempty" database:"CyclicalBfield_four"`
	FieldFive  string     `json:"field_five" database:"CyclicalBfield_five"`
}

type D added in v0.17.0

type D interface {
	IsA()
	IsB()
	IsD()
	GetA() string
	GetB() int
	GetD() *string
}

type EnumWithDescription added in v0.9.2

type EnumWithDescription string

EnumWithDescription is an enum with a description

const (
	EnumWithDescriptionCat EnumWithDescription = "CAT"
	EnumWithDescriptionDog EnumWithDescription = "DOG"
)

func (EnumWithDescription) IsValid added in v0.9.2

func (e EnumWithDescription) IsValid() bool

func (EnumWithDescription) MarshalGQL added in v0.9.2

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

func (EnumWithDescription) String added in v0.9.2

func (e EnumWithDescription) String() string

func (*EnumWithDescription) UnmarshalGQL added in v0.9.2

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

type ExistingEnum

type ExistingEnum string

type ExistingInput

type ExistingInput struct {
	Name string
	Enum ExistingEnum
	Int  ExistingInterface
}

type ExistingInterface

type ExistingInterface interface {
	IsExistingInterface()
}

type ExistingModel

type ExistingModel struct {
	Name string
	Enum ExistingEnum
	Int  ExistingInterface
}

type ExistingType

type ExistingType struct {
	Name     *string              `json:"name"`
	Enum     *ExistingEnum        `json:"enum"`
	Int      ExistingInterface    `json:"int"`
	Existing *MissingTypeNullable `json:"existing"`
}

type ExistingUnion

type ExistingUnion interface {
	IsExistingUnion()
}

type ExtraFieldsTest added in v0.17.32

type ExtraFieldsTest struct {
	SchemaField   string  `json:"SchemaField" database:"ExtraFieldsTestSchemaField"`
	FieldInt      int64   `json:"field_int_tag" database:"ExtraFieldsTestFieldInt"`
	FieldIntSlice []int64 `json:"-" database:"ExtraFieldsTestFieldIntSlice"`
	// Internal field
	FieldInternalType extrafields.Type `json:"-" database:"ExtraFieldsTestFieldInternalType"`
	FieldStringPtr    *string          `json:"-" database:"ExtraFieldsTestFieldStringPtr"`
}

type FieldMutationHook added in v0.15.0

type FieldMutationHook struct {
	Name     *string       `json:"name,omitempty" anotherTag:"tag" database:"FieldMutationHookname"`
	Enum     *ExistingEnum `json:"enum,omitempty" yetAnotherTag:"12" database:"FieldMutationHookenum"`
	NoVal    *string       `json:"noVal,omitempty" yaml:"noVal" repeated:"true" database:"FieldMutationHooknoVal"`
	Repeated *string       `json:"repeated,omitempty" someTag:"value" repeated:"true" database:"FieldMutationHookrepeated"`
}

type FooBarer added in v0.11.0

type FooBarer interface {
	IsFooBarer()
	GetName() string
}

type FooBarr added in v0.11.0

type FooBarr struct {
	Name string `json:"name" database:"_Foo_Barrname"`
}

func (FooBarr) GetName added in v0.17.14

func (this FooBarr) GetName() string

func (FooBarr) IsFooBarer added in v0.11.0

func (FooBarr) IsFooBarer()

type ImplArrayOfA added in v0.17.15

type ImplArrayOfA struct {
	TrickyField        []*CDImplemented `json:"trickyField" database:"ImplArrayOfAtrickyField"`
	TrickyFieldPointer []*CDImplemented `json:"trickyFieldPointer,omitempty" database:"ImplArrayOfAtrickyFieldPointer"`
}

func (ImplArrayOfA) GetTrickyField added in v0.17.15

func (this ImplArrayOfA) GetTrickyField() []A

func (ImplArrayOfA) GetTrickyFieldPointer added in v0.17.15

func (this ImplArrayOfA) GetTrickyFieldPointer() []A

func (ImplArrayOfA) IsArrayOfA added in v0.17.15

func (ImplArrayOfA) IsArrayOfA()

type InterfaceWithDescription added in v0.9.2

type InterfaceWithDescription interface {
	IsInterfaceWithDescription()
	GetName() *string
}

InterfaceWithDescription is an interface with a description

type MissingEnum

type MissingEnum string
const (
	MissingEnumHello   MissingEnum = "Hello"
	MissingEnumGoodbye MissingEnum = "Goodbye"
)

func (MissingEnum) IsValid

func (e MissingEnum) IsValid() bool

func (MissingEnum) MarshalGQL

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

func (MissingEnum) String

func (e MissingEnum) String() string

func (*MissingEnum) UnmarshalGQL

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

type MissingInput

type MissingInput struct {
	Name          *string                           `json:"name,omitempty" database:"MissingInputname"`
	Enum          *MissingEnum                      `json:"enum,omitempty" database:"MissingInputenum"`
	NonNullString string                            `json:"nonNullString" database:"MissingInputnonNullString"`
	NullString    graphql.Omittable[*string]        `json:"nullString,omitempty" database:"MissingInputnullString"`
	NullEnum      graphql.Omittable[*MissingEnum]   `json:"nullEnum,omitempty" database:"MissingInputnullEnum"`
	NullObject    graphql.Omittable[*ExistingInput] `json:"nullObject,omitempty" database:"MissingInputnullObject"`
}

type MissingInterface

type MissingInterface interface {
	IsMissingInterface()
	GetName() *string
}

type MissingTypeNotNull added in v0.9.0

type MissingTypeNotNull struct {
	Name     string               `json:"name" database:"MissingTypeNotNullname"`
	Enum     MissingEnum          `json:"enum" database:"MissingTypeNotNullenum"`
	Int      MissingInterface     `json:"int" database:"MissingTypeNotNullint"`
	Existing *ExistingType        `json:"existing" database:"MissingTypeNotNullexisting"`
	Missing2 *MissingTypeNullable `json:"missing2" database:"MissingTypeNotNullmissing2"`
}

func (MissingTypeNotNull) GetName added in v0.17.14

func (this MissingTypeNotNull) GetName() *string

func (MissingTypeNotNull) IsExistingInterface added in v0.9.0

func (MissingTypeNotNull) IsExistingInterface()

func (MissingTypeNotNull) IsExistingUnion added in v0.9.0

func (MissingTypeNotNull) IsExistingUnion()

func (MissingTypeNotNull) IsMissingInterface added in v0.9.0

func (MissingTypeNotNull) IsMissingInterface()

func (MissingTypeNotNull) IsMissingUnion added in v0.9.0

func (MissingTypeNotNull) IsMissingUnion()

type MissingTypeNullable added in v0.9.0

type MissingTypeNullable struct {
	Name     *string             `json:"name,omitempty" database:"MissingTypeNullablename"`
	Enum     *MissingEnum        `json:"enum,omitempty" database:"MissingTypeNullableenum"`
	Int      MissingInterface    `json:"int,omitempty" database:"MissingTypeNullableint"`
	Existing *ExistingType       `json:"existing,omitempty" database:"MissingTypeNullableexisting"`
	Missing2 *MissingTypeNotNull `json:"missing2,omitempty" database:"MissingTypeNullablemissing2"`
}

func (MissingTypeNullable) GetName added in v0.17.14

func (this MissingTypeNullable) GetName() *string

func (MissingTypeNullable) IsExistingInterface added in v0.9.0

func (MissingTypeNullable) IsExistingInterface()

func (MissingTypeNullable) IsExistingUnion added in v0.9.0

func (MissingTypeNullable) IsExistingUnion()

func (MissingTypeNullable) IsMissingInterface added in v0.9.0

func (MissingTypeNullable) IsMissingInterface()

func (MissingTypeNullable) IsMissingUnion added in v0.9.0

func (MissingTypeNullable) IsMissingUnion()

type MissingUnion

type MissingUnion interface {
	IsMissingUnion()
}

type Mutation added in v0.17.42

type Mutation struct {
}

type NotCyclicalA added in v0.17.10

type NotCyclicalA struct {
	FieldOne string `json:"FieldOne" database:"NotCyclicalAFieldOne"`
	FieldTwo int    `json:"FieldTwo" database:"NotCyclicalAFieldTwo"`
}

type NotCyclicalB added in v0.17.10

type NotCyclicalB struct {
	FieldOne string        `json:"FieldOne" database:"NotCyclicalBFieldOne"`
	FieldTwo *NotCyclicalA `json:"FieldTwo" database:"NotCyclicalBFieldTwo"`
}

type OmitEmptyJSONTagTest added in v0.17.32

type OmitEmptyJSONTagTest struct {
	ValueNonNil string  `json:"ValueNonNil" database:"OmitEmptyJsonTagTestValueNonNil"`
	Value       *string `json:"Value,omitempty" database:"OmitEmptyJsonTagTestValue"`
}

type Query added in v0.17.42

type Query struct {
}

type Recursive added in v0.17.10

type Recursive struct {
	FieldOne   *Recursive `json:"FieldOne" database:"RecursiveFieldOne"`
	FieldTwo   *Recursive `json:"FieldTwo" database:"RecursiveFieldTwo"`
	FieldThree *Recursive `json:"FieldThree" database:"RecursiveFieldThree"`
	FieldFour  string     `json:"FieldFour" database:"RecursiveFieldFour"`
}

type RenameFieldTest added in v0.17.10

type RenameFieldTest struct {
	GOODnaME   string `json:"badName" database:"RenameFieldTestbadName"`
	OtherField string `json:"otherField" database:"RenameFieldTestotherField"`
}

type SomeContent added in v0.17.43

type SomeContent string
const (
	SomeContentThis SomeContent = "This"
	SomeContentIs   SomeContent = "Is"
	SomeContentA    SomeContent = "A"
	SomeContentTest SomeContent = "Test"
)

func (SomeContent) IsValid added in v0.17.43

func (e SomeContent) IsValid() bool

func (SomeContent) MarshalGQL added in v0.17.43

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

func (SomeContent) String added in v0.17.43

func (e SomeContent) String() string

func (*SomeContent) UnmarshalGQL added in v0.17.43

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

type Subscription added in v0.17.42

type Subscription struct {
}

type TypeWithDescription added in v0.9.2

type TypeWithDescription struct {
	Name *string `json:"name,omitempty" database:"TypeWithDescriptionname"`
}

TypeWithDescription is a type with a description

func (TypeWithDescription) IsUnionWithDescription added in v0.9.2

func (TypeWithDescription) IsUnionWithDescription()

type UnionWithDescription added in v0.9.2

type UnionWithDescription interface {
	IsUnionWithDescription()
}

UnionWithDescription is an union with a description

type X added in v0.17.21

type X interface {
	IsX()
	GetId() string
}

type Xer added in v0.17.21

type Xer struct {
	Id   string `json:"Id" database:"XerId"`
	Name string `json:"Name" database:"XerName"`
}

func (Xer) GetId added in v0.17.21

func (this Xer) GetId() string

func (Xer) IsX added in v0.17.21

func (Xer) IsX()

Jump to

Keyboard shortcuts

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