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 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 ¶
type BooleanValue struct {
Value string
}
func (*BooleanValue) GetValue ¶
func (v *BooleanValue) GetValue() interface{}
func (*BooleanValue) Kind ¶
func (v *BooleanValue) Kind() ValueKind
type Document ¶
func NewDocument ¶
func NewDocument() *Document
type Field ¶
type Field struct { Alias string Name string Arguments []*Argument Directives []*Directive SelectionSet []Selection }
func (*Field) GetDirectives ¶
func (*Field) Kind ¶
func (f *Field) Kind() SelectionKind
type FloatValue ¶
type FloatValue struct {
Value string
}
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 }
func (*InlineFragment) GetDirectives ¶
func (inf *InlineFragment) GetDirectives() []*Directive
func (*InlineFragment) Kind ¶
func (inf *InlineFragment) Kind() SelectionKind
type NonNullType ¶
type NonNullType struct {
Type
}
func (*NonNullType) GetValue ¶
func (t *NonNullType) GetValue() interface{}
func (*NonNullType) Kind ¶
func (t *NonNullType) Kind() TypeKind
type ObjectFieldValue ¶
func (*ObjectFieldValue) GetValue ¶
func (v *ObjectFieldValue) GetValue() interface{}
func (*ObjectFieldValue) Kind ¶
func (v *ObjectFieldValue) Kind() ValueKind
type ObjectValue ¶
type ObjectValue struct {
Fields []*ObjectFieldValue
}
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 }
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 ¶
type StringValue struct {
Value string
}
func (*StringValue) GetValue ¶
func (v *StringValue) GetValue() interface{}
func (*StringValue) Kind ¶
func (v *StringValue) Kind() ValueKind
type VariableValue ¶
type VariableValue struct {
Name string
}
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.