Documentation ¶
Index ¶
- type Arguments
- type BooleanValue
- type Directive
- type Directives
- type Document
- type EnumValue
- type Field
- type Fragment
- type FragmentSpread
- type InlineFragment
- type NullValue
- type Operation
- type OperationType
- type Parser
- type Selection
- type SelectionSet
- type StringValue
- type Token
- type TypeCondition
- type Value
- type VariableDefinition
- type VariableDefinitions
- type VariableValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanValue ¶
type BooleanValue bool
func (BooleanValue) MarshalJSON ¶
func (v BooleanValue) MarshalJSON() ([]byte, error)
func (BooleanValue) String ¶
func (v BooleanValue) String() string
type Directives ¶
type Directives []*Directive
func (Directives) String ¶
func (ds Directives) String() string
type Document ¶
type Field ¶
type Field struct { Alias string `json:"alias,omitempty"` Name string `json:"name"` Arguments Arguments `json:"arguments,omitempty"` Directives Directives `json:"directives,omitempty"` SelectionSet SelectionSet `json:"selection_set,omitempty"` }
func (*Field) MarshalJSON ¶
type Fragment ¶
type Fragment struct { Name string `json:"name"` TypeCondition *TypeCondition `json:"type_condition,omitempty"` Directives Directives `json:"directives,omitempty"` SelectionSet SelectionSet `json:"selection_set"` }
type FragmentSpread ¶
type FragmentSpread struct { Name string `json:"selection_set"` Directives Directives `json:"directives,omitempty"` }
func (*FragmentSpread) MarshalJSON ¶
func (f *FragmentSpread) MarshalJSON() ([]byte, error)
func (*FragmentSpread) String ¶
func (f *FragmentSpread) String() string
type InlineFragment ¶
type InlineFragment struct { TypeCondition *TypeCondition `json:"type_condition,omitempty"` Directives Directives `json:"directives,omitempty"` SelectionSet SelectionSet `json:"selection_set"` }
func (*InlineFragment) MarshalJSON ¶
func (f *InlineFragment) MarshalJSON() ([]byte, error)
func (*InlineFragment) String ¶
func (i *InlineFragment) String() string
type Operation ¶
type Operation struct { OperationType OperationType `json:"type"` Name string `json:"name"` // optional VariableDefinitions VariableDefinitions `json:"variable_definitions,omitempty"` Directives Directives `json:"directives,omitempty"` SelectionSet SelectionSet `json:"selection_set"` }
type OperationType ¶
type OperationType int
const ( Query OperationType = iota // query – a read‐only fetch. Mutation // mutation – a write followed by a fetch. Subscription // subscription – a long‐lived request that fetches data in response to source events. )
func (OperationType) MarshalJSON ¶
func (o OperationType) MarshalJSON() ([]byte, error)
func (OperationType) String ¶
func (o OperationType) String() string
type SelectionSet ¶
type SelectionSet []Selection
func (SelectionSet) String ¶
func (s SelectionSet) String() string
type StringValue ¶
type StringValue string
func (StringValue) MarshalJSON ¶
func (s StringValue) MarshalJSON() ([]byte, error)
func (StringValue) String ¶
func (s StringValue) String() string
type TypeCondition ¶
type TypeCondition struct {
NamedType string // "on X"
}
func (*TypeCondition) String ¶
func (t *TypeCondition) String() string
type VariableDefinition ¶
type VariableDefinitions ¶
type VariableDefinitions []*VariableDefinition
func (VariableDefinitions) String ¶
func (v VariableDefinitions) String() string
type VariableValue ¶
type VariableValue struct {
Var string
}
func (*VariableValue) MarshalJSON ¶
func (v *VariableValue) MarshalJSON() ([]byte, error)
func (*VariableValue) String ¶
func (v *VariableValue) String() string
Click to show internal directories.
Click to hide internal directories.