Documentation
¶
Index ¶
- type Argument
- type BooleanValue
- type Directive
- type Document
- type EnumValue
- type Field
- type Fields
- type FloatValue
- type Fragment
- type FragmentSpread
- type InlineFragment
- type IntValue
- type ListType
- type ListValue
- type Location
- type NamedType
- type NonNullType
- type NullValue
- type ObjectFieldValue
- type ObjectValue
- type Operation
- type OperationType
- type Selection
- type SelectionKind
- type StringValue
- type Type
- type TypeKind
- type Value
- type ValueKind
- type Variable
- type VariableValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanValue ¶
func (*BooleanValue) GetLocation ¶ added in v0.2.0
func (v *BooleanValue) GetLocation() Location
func (*BooleanValue) GetValue ¶
func (v *BooleanValue) GetValue() interface{}
func (*BooleanValue) Kind ¶
func (v *BooleanValue) Kind() ValueKind
type Document ¶
func NewDocument ¶
func NewDocument() *Document
type EnumValue ¶
func (*EnumValue) GetLocation ¶ added in v0.2.0
type Field ¶
type Field struct { Alias string Name string ParentType string Arguments []*Argument Directives []*Directive SelectionSet []Selection Location Location }
func (*Field) GetDirectives ¶
func (*Field) Kind ¶
func (f *Field) Kind() SelectionKind
type FloatValue ¶
func (*FloatValue) GetLocation ¶ added in v0.2.0
func (v *FloatValue) GetLocation() Location
func (*FloatValue) GetValue ¶
func (v *FloatValue) GetValue() interface{}
func (*FloatValue) Kind ¶
func (v *FloatValue) Kind() ValueKind
type FragmentSpread ¶
func (*FragmentSpread) GetDirectives ¶
func (fs *FragmentSpread) GetDirectives() []*Directive
func (*FragmentSpread) Kind ¶
func (fs *FragmentSpread) Kind() SelectionKind
type InlineFragment ¶
type InlineFragment struct { TypeCondition string Directives []*Directive SelectionSet []Selection Location Location }
func (*InlineFragment) GetDirectives ¶
func (inf *InlineFragment) GetDirectives() []*Directive
func (*InlineFragment) Kind ¶
func (inf *InlineFragment) Kind() SelectionKind
type IntValue ¶
func (*IntValue) GetLocation ¶ added in v0.2.0
type ListValue ¶
func (*ListValue) GetLocation ¶ added in v0.2.0
type NonNullType ¶
func (*NonNullType) GetValue ¶
func (t *NonNullType) GetValue() interface{}
func (*NonNullType) Kind ¶
func (t *NonNullType) Kind() TypeKind
type NullValue ¶
func (*NullValue) GetLocation ¶ added in v0.2.0
type ObjectFieldValue ¶
func (*ObjectFieldValue) GetLocation ¶ added in v0.2.0
func (v *ObjectFieldValue) GetLocation() Location
func (*ObjectFieldValue) GetValue ¶
func (v *ObjectFieldValue) GetValue() interface{}
func (*ObjectFieldValue) Kind ¶
func (v *ObjectFieldValue) Kind() ValueKind
type ObjectValue ¶
type ObjectValue struct { Fields []*ObjectFieldValue Location Location }
func (*ObjectValue) GetLocation ¶ added in v0.2.0
func (v *ObjectValue) GetLocation() Location
func (*ObjectValue) GetValue ¶
func (v *ObjectValue) GetValue() interface{}
func (*ObjectValue) Kind ¶
func (v *ObjectValue) Kind() ValueKind
type Operation ¶
type Operation struct { OperationType OperationType Name string Variables []*Variable Directives []*Directive SelectionSet []Selection Location Location }
func NewOperation ¶
func NewOperation(ot OperationType) *Operation
type OperationType ¶
type OperationType int
const ( Query OperationType = iota Mutation Subscription )
type Selection ¶
type Selection interface { Kind() SelectionKind GetDirectives() []*Directive }
type SelectionKind ¶
type SelectionKind int
const ( FieldSelectionKind SelectionKind = iota FragmentSpreadSelectionKind InlineFragmentSelectionKind )
type StringValue ¶
func (*StringValue) GetLocation ¶ added in v0.2.0
func (v *StringValue) GetLocation() Location
func (*StringValue) GetValue ¶
func (v *StringValue) GetValue() interface{}
func (*StringValue) Kind ¶
func (v *StringValue) Kind() ValueKind
type VariableValue ¶
func (*VariableValue) GetLocation ¶ added in v0.2.0
func (v *VariableValue) GetLocation() Location
func (*VariableValue) GetValue ¶
func (v *VariableValue) GetValue() interface{}
func (*VariableValue) Kind ¶
func (v *VariableValue) Kind() ValueKind
Click to show internal directories.
Click to hide internal directories.