Documentation ¶
Index ¶
- type Argument
- type BooleanValue
- type Definition
- type Directive
- type Document
- type EnumDefinition
- 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 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) 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 InputValueDefinition
- type IntValue
- type InterfaceDefinition
- 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 List
- type ListValue
- type Location
- type Name
- type Named
- type Node
- type NonNull
- type ObjectDefinition
- 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 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 ScalarDefinition
- 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 Selection
- type SelectionSet
- type StringValue
- type Type
- type TypeExtensionDefinition
- func (def *TypeExtensionDefinition) GetKind() string
- func (def *TypeExtensionDefinition) GetLoc() *Location
- func (def *TypeExtensionDefinition) GetOperation() string
- func (def *TypeExtensionDefinition) GetSelectionSet() *SelectionSet
- func (def *TypeExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
- type UnionDefinition
- 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 Value
- type Variable
- type VariableDefinition
Constants ¶
This section is empty.
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 { // TODO: determine the minimal set of interface for `Definition` GetOperation() string GetVariableDefinitions() []*VariableDefinition GetSelectionSet() *SelectionSet GetKind() string GetLoc() *Location }
type EnumDefinition ¶
type EnumDefinition struct { Kind string Loc *Location Name *Name Values []*EnumValueDefinition }
EnumDefinition implements Node, Definition
func NewEnumDefinition ¶
func NewEnumDefinition(def *EnumDefinition) *EnumDefinition
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 EnumValueDefinition ¶
EnumValueDefinition implements Node, Definition
func NewEnumValueDefinition ¶
func NewEnumValueDefinition(def *EnumValueDefinition) *EnumValueDefinition
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 Arguments []*InputValueDefinition Type Type }
FieldDefinition implements Node
func NewFieldDefinition ¶
func NewFieldDefinition(def *FieldDefinition) *FieldDefinition
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 Fields []*InputValueDefinition }
InputObjectDefinition implements Node, Definition
func NewInputObjectDefinition ¶
func NewInputObjectDefinition(def *InputObjectDefinition) *InputObjectDefinition
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 InputValueDefinition ¶
type InputValueDefinition struct { Kind string Loc *Location Name *Name Type Type DefaultValue Value }
InputValueDefinition implements Node
func NewInputValueDefinition ¶
func NewInputValueDefinition(def *InputValueDefinition) *InputValueDefinition
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 Fields []*FieldDefinition }
InterfaceDefinition implements Node, Definition
func NewInterfaceDefinition ¶
func NewInterfaceDefinition(def *InterfaceDefinition) *InterfaceDefinition
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 ListValue ¶
ListValue implements Node, Value
func NewListValue ¶
type Location ¶
func NewLocation ¶
type ObjectDefinition ¶
type ObjectDefinition struct { Kind string Loc *Location Name *Name Interfaces []*Named Fields []*FieldDefinition }
ObjectDefinition implements Node, Definition
func NewObjectDefinition ¶
func NewObjectDefinition(def *ObjectDefinition) *ObjectDefinition
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 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 ScalarDefinition ¶
ScalarDefinition implements Node, Definition
func NewScalarDefinition ¶
func NewScalarDefinition(def *ScalarDefinition) *ScalarDefinition
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 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 TypeExtensionDefinition ¶
type TypeExtensionDefinition struct { Kind string Loc *Location Definition *ObjectDefinition }
TypeExtensionDefinition implements Node, Definition
func NewTypeExtensionDefinition ¶
func NewTypeExtensionDefinition(def *TypeExtensionDefinition) *TypeExtensionDefinition
func (*TypeExtensionDefinition) GetKind ¶
func (def *TypeExtensionDefinition) GetKind() string
func (*TypeExtensionDefinition) GetLoc ¶
func (def *TypeExtensionDefinition) GetLoc() *Location
func (*TypeExtensionDefinition) GetOperation ¶
func (def *TypeExtensionDefinition) GetOperation() string
func (*TypeExtensionDefinition) GetSelectionSet ¶
func (def *TypeExtensionDefinition) GetSelectionSet() *SelectionSet
func (*TypeExtensionDefinition) GetVariableDefinitions ¶
func (def *TypeExtensionDefinition) GetVariableDefinitions() []*VariableDefinition
type UnionDefinition ¶
UnionDefinition implements Node, Definition
func NewUnionDefinition ¶
func NewUnionDefinition(def *UnionDefinition) *UnionDefinition
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 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