Help us shape the future of Go! Take the 2026 Go Developer Survey

introspection

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Introspection = `` /* 1603-byte string literal not displayed */

Variables

This section is empty.

Functions

func ParseIntrospectionQuery

func ParseIntrospectionQuery(url string, query Query) *ast.SchemaDocument

Types

type DirectiveType

type DirectiveType struct {
	Name        string
	Description *string
	Locations   []string
	Args        []*InputValue
}

type FieldValue

type FieldValue struct {
	Name              string
	Description       *string
	Args              []*InputValue
	Type              TypeRef
	IsDeprecated      bool
	DeprecationReason *string
}

type FullType

type FullType struct {
	Kind        TypeKind
	Name        *string
	Description *string
	Fields      []*FieldValue
	InputFields []*InputValue
	Interfaces  []*TypeRef
	EnumValues  []*struct {
		Name              string
		Description       *string
		IsDeprecated      bool
		DeprecationReason *string
	}
	PossibleTypes []*TypeRef
}

type FullTypes

type FullTypes []*FullType

func (FullTypes) NameMap

func (fs FullTypes) NameMap() map[string]*FullType

type InputValue

type InputValue struct {
	Name         string
	Description  *string
	Type         TypeRef
	DefaultValue *string
}

type Query

type Query struct {
	Schema struct {
		QueryType        struct{ Name *string }
		MutationType     *struct{ Name *string }
		SubscriptionType *struct{ Name *string }
		Types            FullTypes
		Directives       []*DirectiveType
	} `graphql:"__schema"`
}

type TypeKind

type TypeKind string
const (
	TypeKindScalar      TypeKind = "SCALAR"
	TypeKindObject      TypeKind = "OBJECT"
	TypeKindInterface   TypeKind = "INTERFACE"
	TypeKindUnion       TypeKind = "UNION"
	TypeKindEnum        TypeKind = "ENUM"
	TypeKindInputObject TypeKind = "INPUT_OBJECT"
	TypeKindList        TypeKind = "LIST"
	TypeKindNonNull     TypeKind = "NON_NULL"
)

type TypeRef

type TypeRef struct {
	Kind   TypeKind
	Name   *string
	OfType *TypeRef
}

Jump to

Keyboard shortcuts

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