introspection

package
v0.0.0-...-f420c12 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

retrospection converts from an introspection result to a Schema

Index

Constants

View Source
const Query = `` /* 1355-byte string literal not displayed */

Variables

This section is empty.

Functions

func Description

func Description(desc schema.Description) *string

func NewSchema

func NewSchema(introspection json.RawMessage) (*schema.Schema, error)

Types

type Directive

type Directive struct {
	// contains filtered or unexported fields
}

func (*Directive) Args

func (r *Directive) Args() []*InputValue

func (*Directive) Description

func (r *Directive) Description() *string

func (*Directive) Locations

func (r *Directive) Locations() []string

func (*Directive) Name

func (r *Directive) Name() string

type EnumValue

type EnumValue struct {
	// contains filtered or unexported fields
}

func (*EnumValue) DeprecationReason

func (r *EnumValue) DeprecationReason() *string

func (*EnumValue) Description

func (r *EnumValue) Description() *string

func (*EnumValue) IsDeprecated

func (r *EnumValue) IsDeprecated() bool

func (*EnumValue) Name

func (r *EnumValue) Name() string

type Field

type Field struct {
	// contains filtered or unexported fields
}

func (*Field) Args

func (r *Field) Args() []*InputValue

func (*Field) DeprecationReason

func (r *Field) DeprecationReason() *string

func (*Field) Description

func (r *Field) Description() *string

func (*Field) IsDeprecated

func (r *Field) IsDeprecated() bool

func (*Field) Name

func (r *Field) Name() string

func (*Field) Type

func (r *Field) Type() *Type

type InputValue

type InputValue struct {
	// contains filtered or unexported fields
}

func (*InputValue) DefaultValue

func (r *InputValue) DefaultValue() *string

func (*InputValue) Description

func (r *InputValue) Description() *string

func (*InputValue) Name

func (r *InputValue) Name() string

func (*InputValue) To__InputValue

func (r *InputValue) To__InputValue() (*InputValue, bool)

func (*InputValue) Type

func (r *InputValue) Type() *Type

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

func WrapSchema

func WrapSchema(schema *schema.Schema) *Schema

WrapSchema is only used internally.

func (*Schema) Directives

func (r *Schema) Directives() []*Directive

func (*Schema) MutationType

func (r *Schema) MutationType() *Type

func (*Schema) QueryType

func (r *Schema) QueryType() *Type

func (*Schema) SubscriptionType

func (r *Schema) SubscriptionType() *Type

func (*Schema) Types

func (r *Schema) Types() []*Type

type Type

type Type struct {
	// contains filtered or unexported fields
}

func WrapType

func WrapType(typ schema.Type) *Type

WrapType is only used internally.

func (*Type) Description

func (r *Type) Description() *string

func (*Type) EnumValues

func (r *Type) EnumValues(args *struct{ IncludeDeprecated bool }) *[]*EnumValue

func (*Type) Fields

func (r *Type) Fields(args *struct{ IncludeDeprecated bool }) *[]*Field

func (*Type) InputFields

func (r *Type) InputFields() *[]*InputValue

func (*Type) Interfaces

func (r *Type) Interfaces() *[]*Type

func (*Type) Kind

func (r *Type) Kind() string

func (*Type) Name

func (r *Type) Name() *string

func (*Type) OfType

func (r *Type) OfType() *Type

func (*Type) PossibleTypes

func (r *Type) PossibleTypes() *[]*Type

func (*Type) To__Type

func (t *Type) To__Type() (*Type, bool)

Jump to

Keyboard shortcuts

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