Documentation ¶
Index ¶
- Constants
- type Argument
- type BooleanValue
- type Definition
- type DescribableNode
- type Directive
- type DirectiveDefinition
- func (def *DirectiveDefinition) GetDescription() *StringValue
- func (def *DirectiveDefinition) GetKind() string
- func (def *DirectiveDefinition) GetLoc() *Location
- func (def *DirectiveDefinition) GetOperation() string
- func (def *DirectiveDefinition) GetSelectionSet() *SelectionSet
- func (def *DirectiveDefinition) GetVariableDefinitions() []*VariableDefinition
- type Document
- type EnumDefinition
- func (def *EnumDefinition) GetDescription() *StringValue
- func (def *EnumDefinition) GetKind() string
- func (def *EnumDefinition) GetLoc() *Location
- func (def *EnumDefinition) GetName() *Name
- func (def *EnumDefinition) GetOperation() string
- func (def *EnumDefinition) GetSelectionSet() *SelectionSet
- func (def *EnumDefinition) GetVariableDefinitions() []*VariableDefinition
- type EnumExtensionDefinition
- func (def *EnumExtensionDefinition) GetKind() string
- func (def *EnumExtensionDefinition) GetLoc() *Location
- func (def *EnumExtensionDefinition) GetOperation() string
- func (def *EnumExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *EnumExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type EnumValue
- type EnumValueDefinition
- type Field
- type FieldDefinition
- type FloatValue
- type FragmentDefinition
- func (fd *FragmentDefinition) GetKind() string
- func (fd *FragmentDefinition) GetLoc() *Location
- func (fd *FragmentDefinition) GetName() *Name
- func (fd *FragmentDefinition) GetOperation() string
- func (fd *FragmentDefinition) GetSelectionSet() *SelectionSet
- func (fd *FragmentDefinition) GetVariableDefinitions() []*VariableDefinition
- type FragmentSpread
- type InlineFragment
- type InputObjectDefinition
- func (def *InputObjectDefinition) GetDescription() *StringValue
- func (def *InputObjectDefinition) GetKind() string
- func (def *InputObjectDefinition) GetLoc() *Location
- func (def *InputObjectDefinition) GetName() *Name
- func (def *InputObjectDefinition) GetOperation() string
- func (def *InputObjectDefinition) GetSelectionSet() *SelectionSet
- func (def *InputObjectDefinition) GetVariableDefinitions() []*VariableDefinition
- type InputObjectExtensionDefinition
- func (def *InputObjectExtensionDefinition) GetKind() string
- func (def *InputObjectExtensionDefinition) GetLoc() *Location
- func (def *InputObjectExtensionDefinition) GetOperation() string
- func (def *InputObjectExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *InputObjectExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type InputValueDefinition
- type IntValue
- type InterfaceDefinition
- func (def *InterfaceDefinition) GetDescription() *StringValue
- func (def *InterfaceDefinition) GetKind() string
- func (def *InterfaceDefinition) GetLoc() *Location
- func (def *InterfaceDefinition) GetName() *Name
- func (def *InterfaceDefinition) GetOperation() string
- func (def *InterfaceDefinition) GetSelectionSet() *SelectionSet
- func (def *InterfaceDefinition) GetVariableDefinitions() []*VariableDefinition
- type InterfaceExtensionDefinition
- func (def *InterfaceExtensionDefinition) GetKind() string
- func (def *InterfaceExtensionDefinition) GetLoc() *Location
- func (def *InterfaceExtensionDefinition) GetOperation() string
- func (def *InterfaceExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *InterfaceExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type List
- type ListValue
- type Location
- type Name
- type Named
- type Node
- type NonNull
- type ObjectDefinition
- func (def *ObjectDefinition) GetDescription() *StringValue
- func (def *ObjectDefinition) GetKind() string
- func (def *ObjectDefinition) GetLoc() *Location
- func (def *ObjectDefinition) GetName() *Name
- func (def *ObjectDefinition) GetOperation() string
- func (def *ObjectDefinition) GetSelectionSet() *SelectionSet
- func (def *ObjectDefinition) GetVariableDefinitions() []*VariableDefinition
- type ObjectExtensionDefinition
- func (def *ObjectExtensionDefinition) GetKind() string
- func (def *ObjectExtensionDefinition) GetLoc() *Location
- func (def *ObjectExtensionDefinition) GetOperation() string
- func (def *ObjectExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *ObjectExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type ObjectField
- type ObjectValue
- type OperationDefinition
- func (op *OperationDefinition) GetDirectives() []*Directive
- func (op *OperationDefinition) GetKind() string
- func (op *OperationDefinition) GetLoc() *Location
- func (op *OperationDefinition) GetName() *Name
- func (op *OperationDefinition) GetOperation() string
- func (op *OperationDefinition) GetSelectionSet() *SelectionSet
- func (op *OperationDefinition) GetVariableDefinitions() []*VariableDefinition
- type OperationTypeDefinition
- type ScalarDefinition
- func (def *ScalarDefinition) GetDescription() *StringValue
- func (def *ScalarDefinition) GetKind() string
- func (def *ScalarDefinition) GetLoc() *Location
- func (def *ScalarDefinition) GetName() *Name
- func (def *ScalarDefinition) GetOperation() string
- func (def *ScalarDefinition) GetSelectionSet() *SelectionSet
- func (def *ScalarDefinition) GetVariableDefinitions() []*VariableDefinition
- type ScalarExtensionDefinition
- func (def *ScalarExtensionDefinition) GetKind() string
- func (def *ScalarExtensionDefinition) GetLoc() *Location
- func (def *ScalarExtensionDefinition) GetOperation() string
- func (def *ScalarExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *ScalarExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type SchemaDefinition
- type SchemaExtensionDefinition
- func (def *SchemaExtensionDefinition) GetKind() string
- func (def *SchemaExtensionDefinition) GetLoc() *Location
- func (def *SchemaExtensionDefinition) GetOperation() string
- func (def *SchemaExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *SchemaExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type Selection
- type SelectionSet
- type StringValue
- type Type
- type TypeDefinition
- type TypeSystemDefinition
- type UnionDefinition
- func (def *UnionDefinition) GetDescription() *StringValue
- func (def *UnionDefinition) GetKind() string
- func (def *UnionDefinition) GetLoc() *Location
- func (def *UnionDefinition) GetName() *Name
- func (def *UnionDefinition) GetOperation() string
- func (def *UnionDefinition) GetSelectionSet() *SelectionSet
- func (def *UnionDefinition) GetVariableDefinitions() []*VariableDefinition
- type UnionExtensionDefinition
- func (def *UnionExtensionDefinition) GetKind() string
- func (def *UnionExtensionDefinition) GetLoc() *Location
- func (def *UnionExtensionDefinition) GetOperation() string
- func (def *UnionExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *UnionExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type Value
- type Variable
- type VariableDefinition
Constants ¶
const ( OperationTypeQuery = "query" OperationTypeMutation = "mutation" OperationTypeSubscription = "subscription" )
Note: subscription is an experimental non-spec addition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanValue ¶
BooleanValue implements Node, Value
func NewBooleanValue ¶
func NewBooleanValue(v *BooleanValue) *BooleanValue
func (*BooleanValue) GetKind ¶
func (v *BooleanValue) GetKind() string
func (*BooleanValue) GetLoc ¶
func (v *BooleanValue) GetLoc() *Location
func (*BooleanValue) GetValue ¶
func (v *BooleanValue) GetValue() interface{}
type Definition ¶
type Definition interface { GetOperation() string GetVariableDefinitions() []*VariableDefinition GetSelectionSet() *SelectionSet GetKind() string GetLoc() *Location }
type DescribableNode ¶ added in v0.7.4
type DescribableNode interface {
GetDescription() *StringValue
}
DescribableNode are nodes that have descriptions associated with them.
type DirectiveDefinition ¶ added in v0.5.0
type DirectiveDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Arguments []*InputValueDefinition Locations []*Name }
DirectiveDefinition implements Node, Definition
func NewDirectiveDefinition ¶ added in v0.5.0
func NewDirectiveDefinition(def *DirectiveDefinition) *DirectiveDefinition
func (*DirectiveDefinition) GetDescription ¶ added in v0.7.4
func (def *DirectiveDefinition) GetDescription() *StringValue
func (*DirectiveDefinition) GetKind ¶ added in v0.5.0
func (def *DirectiveDefinition) GetKind() string
func (*DirectiveDefinition) GetLoc ¶ added in v0.5.0
func (def *DirectiveDefinition) GetLoc() *Location
func (*DirectiveDefinition) GetOperation ¶ added in v0.5.0
func (def *DirectiveDefinition) GetOperation() string
func (*DirectiveDefinition) GetSelectionSet ¶ added in v0.5.0
func (def *DirectiveDefinition) GetSelectionSet() *SelectionSet
func (*DirectiveDefinition) GetVariableDefinitions ¶ added in v0.5.0
func (def *DirectiveDefinition) GetVariableDefinitions() []*VariableDefinition
type EnumDefinition ¶
type EnumDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Directives []*Directive Values []*EnumValueDefinition }
EnumDefinition implements Node, Definition
func NewEnumDefinition ¶
func NewEnumDefinition(def *EnumDefinition) *EnumDefinition
func (*EnumDefinition) GetDescription ¶ added in v0.7.4
func (def *EnumDefinition) GetDescription() *StringValue
func (*EnumDefinition) GetKind ¶
func (def *EnumDefinition) GetKind() string
func (*EnumDefinition) GetLoc ¶
func (def *EnumDefinition) GetLoc() *Location
func (*EnumDefinition) GetName ¶
func (def *EnumDefinition) GetName() *Name
func (*EnumDefinition) GetOperation ¶
func (def *EnumDefinition) GetOperation() string
func (*EnumDefinition) GetSelectionSet ¶
func (def *EnumDefinition) GetSelectionSet() *SelectionSet
func (*EnumDefinition) GetVariableDefinitions ¶
func (def *EnumDefinition) GetVariableDefinitions() []*VariableDefinition
type EnumExtensionDefinition ¶
type EnumExtensionDefinition struct { Kind string Loc *Location Definition *EnumDefinition }
EnumExtensionDefinition implements Node, Definition
func NewEnumExtensionDefinition ¶
func NewEnumExtensionDefinition(def *EnumExtensionDefinition) *EnumExtensionDefinition
func (*EnumExtensionDefinition) GetKind ¶
func (def *EnumExtensionDefinition) GetKind() string
func (*EnumExtensionDefinition) GetLoc ¶
func (def *EnumExtensionDefinition) GetLoc() *Location
func (*EnumExtensionDefinition) GetOperation ¶
func (def *EnumExtensionDefinition) GetOperation() string
func (*EnumExtensionDefinition) GetSelectionSet ¶
func (def *EnumExtensionDefinition) GetSelectionSet() *SelectionSet
func (*EnumExtensionDefinition) GetVariableDefinitions ¶
func (def *EnumExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type EnumValueDefinition ¶
type EnumValueDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Directives []*Directive }
EnumValueDefinition implements Node, Definition
func NewEnumValueDefinition ¶
func NewEnumValueDefinition(def *EnumValueDefinition) *EnumValueDefinition
func (*EnumValueDefinition) GetDescription ¶ added in v0.7.4
func (def *EnumValueDefinition) GetDescription() *StringValue
func (*EnumValueDefinition) GetKind ¶
func (def *EnumValueDefinition) GetKind() string
func (*EnumValueDefinition) GetLoc ¶
func (def *EnumValueDefinition) GetLoc() *Location
type Field ¶
type Field struct { Kind string Loc *Location Alias *Name Name *Name Arguments []*Argument Directives []*Directive SelectionSet *SelectionSet }
Field implements Node, Selection
func (*Field) GetSelectionSet ¶
func (f *Field) GetSelectionSet() *SelectionSet
type FieldDefinition ¶
type FieldDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Arguments []*InputValueDefinition Type Type Directives []*Directive }
FieldDefinition implements Node
func NewFieldDefinition ¶
func NewFieldDefinition(def *FieldDefinition) *FieldDefinition
func (*FieldDefinition) GetDescription ¶ added in v0.7.4
func (def *FieldDefinition) GetDescription() *StringValue
func (*FieldDefinition) GetKind ¶
func (def *FieldDefinition) GetKind() string
func (*FieldDefinition) GetLoc ¶
func (def *FieldDefinition) GetLoc() *Location
type FloatValue ¶
FloatValue implements Node, Value
func NewFloatValue ¶
func NewFloatValue(v *FloatValue) *FloatValue
func (*FloatValue) GetKind ¶
func (v *FloatValue) GetKind() string
func (*FloatValue) GetLoc ¶
func (v *FloatValue) GetLoc() *Location
func (*FloatValue) GetValue ¶
func (v *FloatValue) GetValue() interface{}
type FragmentDefinition ¶
type FragmentDefinition struct { Kind string Loc *Location Operation string Name *Name VariableDefinitions []*VariableDefinition TypeCondition *Named Directives []*Directive SelectionSet *SelectionSet }
FragmentDefinition implements Node, Definition
func NewFragmentDefinition ¶
func NewFragmentDefinition(fd *FragmentDefinition) *FragmentDefinition
func (*FragmentDefinition) GetKind ¶
func (fd *FragmentDefinition) GetKind() string
func (*FragmentDefinition) GetLoc ¶
func (fd *FragmentDefinition) GetLoc() *Location
func (*FragmentDefinition) GetName ¶
func (fd *FragmentDefinition) GetName() *Name
func (*FragmentDefinition) GetOperation ¶
func (fd *FragmentDefinition) GetOperation() string
func (*FragmentDefinition) GetSelectionSet ¶
func (fd *FragmentDefinition) GetSelectionSet() *SelectionSet
func (*FragmentDefinition) GetVariableDefinitions ¶
func (fd *FragmentDefinition) GetVariableDefinitions() []*VariableDefinition
type FragmentSpread ¶
FragmentSpread implements Node, Selection
func NewFragmentSpread ¶
func NewFragmentSpread(fs *FragmentSpread) *FragmentSpread
func (*FragmentSpread) GetKind ¶
func (fs *FragmentSpread) GetKind() string
func (*FragmentSpread) GetLoc ¶
func (fs *FragmentSpread) GetLoc() *Location
func (*FragmentSpread) GetSelectionSet ¶
func (fs *FragmentSpread) GetSelectionSet() *SelectionSet
type InlineFragment ¶
type InlineFragment struct { Kind string Loc *Location TypeCondition *Named Directives []*Directive SelectionSet *SelectionSet }
InlineFragment implements Node, Selection
func NewInlineFragment ¶
func NewInlineFragment(f *InlineFragment) *InlineFragment
func (*InlineFragment) GetKind ¶
func (f *InlineFragment) GetKind() string
func (*InlineFragment) GetLoc ¶
func (f *InlineFragment) GetLoc() *Location
func (*InlineFragment) GetSelectionSet ¶
func (f *InlineFragment) GetSelectionSet() *SelectionSet
type InputObjectDefinition ¶
type InputObjectDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Directives []*Directive Fields []*InputValueDefinition }
InputObjectDefinition implements Node, Definition
func NewInputObjectDefinition ¶
func NewInputObjectDefinition(def *InputObjectDefinition) *InputObjectDefinition
func (*InputObjectDefinition) GetDescription ¶ added in v0.7.4
func (def *InputObjectDefinition) GetDescription() *StringValue
func (*InputObjectDefinition) GetKind ¶
func (def *InputObjectDefinition) GetKind() string
func (*InputObjectDefinition) GetLoc ¶
func (def *InputObjectDefinition) GetLoc() *Location
func (*InputObjectDefinition) GetName ¶
func (def *InputObjectDefinition) GetName() *Name
func (*InputObjectDefinition) GetOperation ¶
func (def *InputObjectDefinition) GetOperation() string
func (*InputObjectDefinition) GetSelectionSet ¶
func (def *InputObjectDefinition) GetSelectionSet() *SelectionSet
func (*InputObjectDefinition) GetVariableDefinitions ¶
func (def *InputObjectDefinition) GetVariableDefinitions() []*VariableDefinition
type InputObjectExtensionDefinition ¶
type InputObjectExtensionDefinition struct { Kind string Loc *Location Definition *InputObjectDefinition }
InputObjectExtensionDefinition implements Node, Definition
func NewInputObjectExtensionDefinition ¶
func NewInputObjectExtensionDefinition(def *InputObjectExtensionDefinition) *InputObjectExtensionDefinition
func (*InputObjectExtensionDefinition) GetKind ¶
func (def *InputObjectExtensionDefinition) GetKind() string
func (*InputObjectExtensionDefinition) GetLoc ¶
func (def *InputObjectExtensionDefinition) GetLoc() *Location
func (*InputObjectExtensionDefinition) GetOperation ¶
func (def *InputObjectExtensionDefinition) GetOperation() string
func (*InputObjectExtensionDefinition) GetSelectionSet ¶
func (def *InputObjectExtensionDefinition) GetSelectionSet() *SelectionSet
func (*InputObjectExtensionDefinition) GetVariableDefinitions ¶
func (def *InputObjectExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type InputValueDefinition ¶
type InputValueDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Type Type DefaultValue Value Directives []*Directive }
InputValueDefinition implements Node
func NewInputValueDefinition ¶
func NewInputValueDefinition(def *InputValueDefinition) *InputValueDefinition
func (*InputValueDefinition) GetDescription ¶ added in v0.7.4
func (def *InputValueDefinition) GetDescription() *StringValue
func (*InputValueDefinition) GetKind ¶
func (def *InputValueDefinition) GetKind() string
func (*InputValueDefinition) GetLoc ¶
func (def *InputValueDefinition) GetLoc() *Location
type InterfaceDefinition ¶
type InterfaceDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Directives []*Directive Fields []*FieldDefinition }
InterfaceDefinition implements Node, Definition
func NewInterfaceDefinition ¶
func NewInterfaceDefinition(def *InterfaceDefinition) *InterfaceDefinition
func (*InterfaceDefinition) GetDescription ¶ added in v0.7.4
func (def *InterfaceDefinition) GetDescription() *StringValue
func (*InterfaceDefinition) GetKind ¶
func (def *InterfaceDefinition) GetKind() string
func (*InterfaceDefinition) GetLoc ¶
func (def *InterfaceDefinition) GetLoc() *Location
func (*InterfaceDefinition) GetName ¶
func (def *InterfaceDefinition) GetName() *Name
func (*InterfaceDefinition) GetOperation ¶
func (def *InterfaceDefinition) GetOperation() string
func (*InterfaceDefinition) GetSelectionSet ¶
func (def *InterfaceDefinition) GetSelectionSet() *SelectionSet
func (*InterfaceDefinition) GetVariableDefinitions ¶
func (def *InterfaceDefinition) GetVariableDefinitions() []*VariableDefinition
type InterfaceExtensionDefinition ¶
type InterfaceExtensionDefinition struct { Kind string Loc *Location Definition *InterfaceDefinition }
InterfaceExtensionDefinition implements Node, Definition
func NewInterfaceExtensionDefinition ¶
func NewInterfaceExtensionDefinition(def *InterfaceExtensionDefinition) *InterfaceExtensionDefinition
func (*InterfaceExtensionDefinition) GetKind ¶
func (def *InterfaceExtensionDefinition) GetKind() string
func (*InterfaceExtensionDefinition) GetLoc ¶
func (def *InterfaceExtensionDefinition) GetLoc() *Location
func (*InterfaceExtensionDefinition) GetOperation ¶
func (def *InterfaceExtensionDefinition) GetOperation() string
func (*InterfaceExtensionDefinition) GetSelectionSet ¶
func (def *InterfaceExtensionDefinition) GetSelectionSet() *SelectionSet
func (*InterfaceExtensionDefinition) GetVariableDefinitions ¶
func (def *InterfaceExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type ListValue ¶
ListValue implements Node, Value
func NewListValue ¶
type Location ¶
func NewLocation ¶
type ObjectDefinition ¶
type ObjectDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Interfaces []*Named Directives []*Directive Fields []*FieldDefinition }
ObjectDefinition implements Node, Definition
func NewObjectDefinition ¶
func NewObjectDefinition(def *ObjectDefinition) *ObjectDefinition
func (*ObjectDefinition) GetDescription ¶ added in v0.7.4
func (def *ObjectDefinition) GetDescription() *StringValue
func (*ObjectDefinition) GetKind ¶
func (def *ObjectDefinition) GetKind() string
func (*ObjectDefinition) GetLoc ¶
func (def *ObjectDefinition) GetLoc() *Location
func (*ObjectDefinition) GetName ¶
func (def *ObjectDefinition) GetName() *Name
func (*ObjectDefinition) GetOperation ¶
func (def *ObjectDefinition) GetOperation() string
func (*ObjectDefinition) GetSelectionSet ¶
func (def *ObjectDefinition) GetSelectionSet() *SelectionSet
func (*ObjectDefinition) GetVariableDefinitions ¶
func (def *ObjectDefinition) GetVariableDefinitions() []*VariableDefinition
type ObjectExtensionDefinition ¶
type ObjectExtensionDefinition struct { Kind string Loc *Location Definition *ObjectDefinition }
ObjectExtensionDefinition implements Node, Definition
func NewObjectExtensionDefinition ¶
func NewObjectExtensionDefinition(def *ObjectExtensionDefinition) *ObjectExtensionDefinition
func (*ObjectExtensionDefinition) GetKind ¶
func (def *ObjectExtensionDefinition) GetKind() string
func (*ObjectExtensionDefinition) GetLoc ¶
func (def *ObjectExtensionDefinition) GetLoc() *Location
func (*ObjectExtensionDefinition) GetOperation ¶
func (def *ObjectExtensionDefinition) GetOperation() string
func (*ObjectExtensionDefinition) GetSelectionSet ¶
func (def *ObjectExtensionDefinition) GetSelectionSet() *SelectionSet
func (*ObjectExtensionDefinition) GetVariableDefinitions ¶
func (def *ObjectExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type ObjectField ¶
ObjectField implements Node, Value
func NewObjectField ¶
func NewObjectField(f *ObjectField) *ObjectField
func (*ObjectField) GetKind ¶
func (f *ObjectField) GetKind() string
func (*ObjectField) GetLoc ¶
func (f *ObjectField) GetLoc() *Location
func (*ObjectField) GetValue ¶
func (f *ObjectField) GetValue() interface{}
type ObjectValue ¶
type ObjectValue struct { Kind string Loc *Location Fields []*ObjectField }
ObjectValue implements Node, Value
func NewObjectValue ¶
func NewObjectValue(v *ObjectValue) *ObjectValue
func (*ObjectValue) GetKind ¶
func (v *ObjectValue) GetKind() string
func (*ObjectValue) GetLoc ¶
func (v *ObjectValue) GetLoc() *Location
func (*ObjectValue) GetValue ¶
func (v *ObjectValue) GetValue() interface{}
type OperationDefinition ¶
type OperationDefinition struct { Kind string Loc *Location Operation string Name *Name VariableDefinitions []*VariableDefinition Directives []*Directive SelectionSet *SelectionSet }
OperationDefinition implements Node, Definition
func NewOperationDefinition ¶
func NewOperationDefinition(op *OperationDefinition) *OperationDefinition
func (*OperationDefinition) GetDirectives ¶
func (op *OperationDefinition) GetDirectives() []*Directive
func (*OperationDefinition) GetKind ¶
func (op *OperationDefinition) GetKind() string
func (*OperationDefinition) GetLoc ¶
func (op *OperationDefinition) GetLoc() *Location
func (*OperationDefinition) GetName ¶
func (op *OperationDefinition) GetName() *Name
func (*OperationDefinition) GetOperation ¶
func (op *OperationDefinition) GetOperation() string
func (*OperationDefinition) GetSelectionSet ¶
func (op *OperationDefinition) GetSelectionSet() *SelectionSet
func (*OperationDefinition) GetVariableDefinitions ¶
func (op *OperationDefinition) GetVariableDefinitions() []*VariableDefinition
type OperationTypeDefinition ¶ added in v0.5.0
OperationTypeDefinition implements Node, Definition
func NewOperationTypeDefinition ¶ added in v0.5.0
func NewOperationTypeDefinition(def *OperationTypeDefinition) *OperationTypeDefinition
func (*OperationTypeDefinition) GetKind ¶ added in v0.5.0
func (def *OperationTypeDefinition) GetKind() string
func (*OperationTypeDefinition) GetLoc ¶ added in v0.5.0
func (def *OperationTypeDefinition) GetLoc() *Location
type ScalarDefinition ¶
type ScalarDefinition struct { Kind string Loc *Location Description *StringValue Name *Name Directives []*Directive }
ScalarDefinition implements Node, Definition
func NewScalarDefinition ¶
func NewScalarDefinition(def *ScalarDefinition) *ScalarDefinition
func (*ScalarDefinition) GetDescription ¶ added in v0.7.4
func (def *ScalarDefinition) GetDescription() *StringValue
func (*ScalarDefinition) GetKind ¶
func (def *ScalarDefinition) GetKind() string
func (*ScalarDefinition) GetLoc ¶
func (def *ScalarDefinition) GetLoc() *Location
func (*ScalarDefinition) GetName ¶
func (def *ScalarDefinition) GetName() *Name
func (*ScalarDefinition) GetOperation ¶
func (def *ScalarDefinition) GetOperation() string
func (*ScalarDefinition) GetSelectionSet ¶
func (def *ScalarDefinition) GetSelectionSet() *SelectionSet
func (*ScalarDefinition) GetVariableDefinitions ¶
func (def *ScalarDefinition) GetVariableDefinitions() []*VariableDefinition
type ScalarExtensionDefinition ¶
type ScalarExtensionDefinition struct { Kind string Loc *Location Definition *ScalarDefinition }
ScalarExtensionDefinition implements Node, Definition
func NewScalarExtensionDefinition ¶
func NewScalarExtensionDefinition(def *ScalarExtensionDefinition) *ScalarExtensionDefinition
func (*ScalarExtensionDefinition) GetKind ¶
func (def *ScalarExtensionDefinition) GetKind() string
func (*ScalarExtensionDefinition) GetLoc ¶
func (def *ScalarExtensionDefinition) GetLoc() *Location
func (*ScalarExtensionDefinition) GetOperation ¶
func (def *ScalarExtensionDefinition) GetOperation() string
func (*ScalarExtensionDefinition) GetSelectionSet ¶
func (def *ScalarExtensionDefinition) GetSelectionSet() *SelectionSet
func (*ScalarExtensionDefinition) GetVariableDefinitions ¶
func (def *ScalarExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type SchemaDefinition ¶ added in v0.5.0
type SchemaDefinition struct { Kind string Loc *Location Directives []*Directive OperationTypes []*OperationTypeDefinition }
SchemaDefinition implements Node, Definition
func NewSchemaDefinition ¶ added in v0.5.0
func NewSchemaDefinition(def *SchemaDefinition) *SchemaDefinition
func NewSchemaExtensionDefinition ¶
func NewSchemaExtensionDefinition(def *SchemaDefinition) *SchemaDefinition
func (*SchemaDefinition) GetKind ¶ added in v0.5.0
func (def *SchemaDefinition) GetKind() string
func (*SchemaDefinition) GetLoc ¶ added in v0.5.0
func (def *SchemaDefinition) GetLoc() *Location
func (*SchemaDefinition) GetOperation ¶ added in v0.5.0
func (def *SchemaDefinition) GetOperation() string
func (*SchemaDefinition) GetSelectionSet ¶ added in v0.5.0
func (def *SchemaDefinition) GetSelectionSet() *SelectionSet
func (*SchemaDefinition) GetVariableDefinitions ¶ added in v0.5.0
func (def *SchemaDefinition) GetVariableDefinitions() []*VariableDefinition
type SchemaExtensionDefinition ¶
type SchemaExtensionDefinition struct { Kind string Loc *Location Definition *SchemaDefinition }
SchemaExtensionDefinition implements Node, Definition
func (*SchemaExtensionDefinition) GetKind ¶
func (def *SchemaExtensionDefinition) GetKind() string
func (*SchemaExtensionDefinition) GetLoc ¶
func (def *SchemaExtensionDefinition) GetLoc() *Location
func (*SchemaExtensionDefinition) GetOperation ¶
func (def *SchemaExtensionDefinition) GetOperation() string
func (*SchemaExtensionDefinition) GetSelectionSet ¶
func (def *SchemaExtensionDefinition) GetSelectionSet() *SelectionSet
func (*SchemaExtensionDefinition) GetVariableDefinitions ¶
func (def *SchemaExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type Selection ¶
type Selection interface {
GetSelectionSet() *SelectionSet
}
type SelectionSet ¶
SelectionSet implements Node
func NewSelectionSet ¶
func NewSelectionSet(ss *SelectionSet) *SelectionSet
func (*SelectionSet) GetKind ¶
func (ss *SelectionSet) GetKind() string
func (*SelectionSet) GetLoc ¶
func (ss *SelectionSet) GetLoc() *Location
type StringValue ¶
StringValue implements Node, Value
func NewStringValue ¶
func NewStringValue(v *StringValue) *StringValue
func (*StringValue) GetKind ¶
func (v *StringValue) GetKind() string
func (*StringValue) GetLoc ¶
func (v *StringValue) GetLoc() *Location
func (*StringValue) GetValue ¶
func (v *StringValue) GetValue() interface{}
type TypeDefinition ¶ added in v0.5.0
type TypeDefinition interface { DescribableNode GetName() *Name GetOperation() string GetVariableDefinitions() []*VariableDefinition GetSelectionSet() *SelectionSet GetKind() string GetLoc() *Location }
type TypeSystemDefinition ¶ added in v0.5.0
type TypeSystemDefinition interface { GetOperation() string GetVariableDefinitions() []*VariableDefinition GetSelectionSet() *SelectionSet GetKind() string GetLoc() *Location }
type UnionDefinition ¶
type UnionDefinition struct { Kind string Loc *Location Name *Name Description *StringValue Directives []*Directive Types []*Named }
UnionDefinition implements Node, Definition
func NewUnionDefinition ¶
func NewUnionDefinition(def *UnionDefinition) *UnionDefinition
func (*UnionDefinition) GetDescription ¶ added in v0.7.4
func (def *UnionDefinition) GetDescription() *StringValue
func (*UnionDefinition) GetKind ¶
func (def *UnionDefinition) GetKind() string
func (*UnionDefinition) GetLoc ¶
func (def *UnionDefinition) GetLoc() *Location
func (*UnionDefinition) GetName ¶
func (def *UnionDefinition) GetName() *Name
func (*UnionDefinition) GetOperation ¶
func (def *UnionDefinition) GetOperation() string
func (*UnionDefinition) GetSelectionSet ¶
func (def *UnionDefinition) GetSelectionSet() *SelectionSet
func (*UnionDefinition) GetVariableDefinitions ¶
func (def *UnionDefinition) GetVariableDefinitions() []*VariableDefinition
type UnionExtensionDefinition ¶
type UnionExtensionDefinition struct { Kind string Loc *Location Definition *UnionDefinition }
UnionExtensionDefinition implements Node, Definition
func NewUnionExtensionDefinition ¶
func NewUnionExtensionDefinition(def *UnionExtensionDefinition) *UnionExtensionDefinition
func (*UnionExtensionDefinition) GetKind ¶
func (def *UnionExtensionDefinition) GetKind() string
func (*UnionExtensionDefinition) GetLoc ¶
func (def *UnionExtensionDefinition) GetLoc() *Location
func (*UnionExtensionDefinition) GetOperation ¶
func (def *UnionExtensionDefinition) GetOperation() string
func (*UnionExtensionDefinition) GetSelectionSet ¶
func (def *UnionExtensionDefinition) GetSelectionSet() *SelectionSet
func (*UnionExtensionDefinition) GetVariableDefinitions ¶
func (def *UnionExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type VariableDefinition ¶
type VariableDefinition struct { Kind string Loc *Location Variable *Variable Type Type DefaultValue Value }
VariableDefinition implements Node
func NewVariableDefinition ¶
func NewVariableDefinition(vd *VariableDefinition) *VariableDefinition
func (*VariableDefinition) GetKind ¶
func (vd *VariableDefinition) GetKind() string
func (*VariableDefinition) GetLoc ¶
func (vd *VariableDefinition) GetLoc() *Location