introspection

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args []*InputValue

type Directive

type Directive struct {
	Name        string                     `gql:"name=name"`
	Description *string                    `gql:"name=description"`
	Locations   []ast.DirectiveLocation    `gql:"name=locations"`
	Args        ast.ArgumentDefinitionList `gql:"name=args"`
	ParentType  string                     `gql:"storage=parentType"`
	Directive   bool                       `gql:"storage=directive"`
}

type DirectiveLocation

type DirectiveLocation int
const (
	DIRECTIVE_LOCATION_ERROR DirectiveLocation = iota
	DIRECTIVE_LOCATION_QUERY
	DIRECTIVE_LOCATION_MUTATION
	DIRECTIVE_LOCATION_SUBSCRIPTION
	DIRECTIVE_LOCATION_FIELD
	DIRECTIVE_LOCATION_FRAGMENT_DEFINITION
	DIRECTIVE_LOCATION_FRAGMENT_SPREAD
	DIRECTIVE_LOCATION_INLINE_FRAGMENT
	DIRECTIVE_LOCATION_SCHEMA
	DIRECTIVE_LOCATION_SCALAR
	DIRECTIVE_LOCATION_OBJECT
	DIRECTIVE_LOCATION_FIELD_DEFINITION
	DIRECTIVE_LOCATION_ARGUMENT_DEFINITION
	DIRECTIVE_LOCATION_INTERFACE
	DIRECTIVE_LOCATION_UNION
	DIRECTIVE_LOCATION_ENUM
	DIRECTIVE_LOCATION_ENUM_VALUE
	DIRECTIVE_LOCATION_INPUT_OBJECT
	DIRECTIVE_LOCATION_INPUT_FIELD_DEFINITION
)

func SetDirectiveLocation

func SetDirectiveLocation(typekind string) *DirectiveLocation

func (DirectiveLocation) EnumIndex

func (o DirectiveLocation) EnumIndex() int

func (DirectiveLocation) Is

func (o DirectiveLocation) Is(value string) bool

func (DirectiveLocation) String

func (o DirectiveLocation) String() string

type Directives

type Directives []*Directive

type ElemType

type ElemType struct {
	NonNull   bool        `gql:"storage=nonNull"`
	NamedType string      `gql:"storage=namedType"`
	Elem      interface{} `gql:"storage=elem"`
}

type EnumValue

type EnumValue struct {
	Name              string  `gql:"name=name"`
	Description       *string `gql:"name=description"`
	IsDeprecated      bool    `gql:"name=isDeprecated"`
	DeprecationReason *string `gql:"name=deprecationReason"`
}

type EnumValues

type EnumValues []*EnumValue

func (*EnumValues) IncludeDeprecated

func (o *EnumValues) IncludeDeprecated(include bool) *EnumValues

type Field

type Field struct {
	Name              string                     `gql:"name=name"`
	Description       *string                    `gql:"name=description"`
	Args              ast.ArgumentDefinitionList `gql:"name=args"`
	Type              *ast.Type                  `gql:"name=type"`
	IsDeprecated      bool                       `gql:"name=isDeprecated"`
	DeprecationReason *string                    `gql:"name=deprecationReason"`
}

type Fields

type Fields []*Field

func (*Fields) IncludeDeprecated

func (o *Fields) IncludeDeprecated(includeDeprecate bool) *Fields

type InputFields

type InputFields []*InputValue

type InputValue

type InputValue struct {
	Name         string    `gql:"name=name,storage=name"`
	Description  *string   `gql:"name=description,storage=description"`
	Type         *ast.Type `gql:"name=type,storage=type"`
	DefaultValue *string   `gql:"namez=defaultValue,storage=defaultValue"`
	ParentType   string    `gql:"storage=parentType"`
	FindIn       string    `gql:"storage=findIn"`
}

type Interfaces

type Interfaces []*Type

type Locations

type Locations []*DirectiveLocation

type PossibleTypes

type PossibleTypes []*Type

type Schema

type Schema struct {
	Types            map[string]*ast.Definition          `gql:"name=types"`
	QueryType        *ast.Definition                     `gql:"name=queryType"`
	MutationType     *ast.Definition                     `gql:"name=mutationType"`
	SubscriptionType *ast.Definition                     `gql:"name=subscriptionType"`
	Directives       map[string]*ast.DirectiveDefinition `gql:"name=directives"`
}

func (*Schema) SetDef

func (o *Schema) SetDef()

type Type

type Type struct {
	Kind        TypeKind `gql:"name=kind"`
	Name        *string  `gql:"name=name"`
	Description *string  `gql:"name=description"`
	// OBJECT and INTERFACE only
	Fields *ast.FieldList `gql:"name=fields"`
	// OBJECT only
	Interfaces *[]string `gql:"name=interfaces"`
	// INTERFACE and UNION only
	PossibleTypes *PossibleTypes `gql:"name=possibleTypes"`
	// ENUM only
	EnumValues *EnumValues `gql:"name=enumValues"`
	// INPUT_OBJECT only
	InputFields *InputFields `gql:"name=inputFields"`
	// NON_NULL and LIST only
	OfType *ast.Type `gql:"name=ofType"`
}

type TypeKind

type TypeKind int
const (
	TYPEKIND_ERROR TypeKind = iota
	TYPEKIND_SCALAR
	TYPEKIND_OBJECT
	TYPEKIND_INTERFACE
	TYPEKIND_UNION
	TYPEKIND_ENUM
	TYPEKIND_INPUT_OBJECT
	TYPEKIND_LIST
	TYPEKIND_NON_NULL
)

func SetTypeKind

func SetTypeKind(typekind string) *TypeKind

func (TypeKind) EnumIndex

func (o TypeKind) EnumIndex() int

func (TypeKind) EnumText

func (o TypeKind) EnumText(x TypeKind) string

func (TypeKind) Is

func (o TypeKind) Is(value string) bool

func (TypeKind) String

func (o TypeKind) String() string

Jump to

Keyboard shortcuts

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