Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllDirectiveLocation = []DirectiveLocation{ DirectiveLocationQuery, DirectiveLocationMutation, DirectiveLocationSubscription, DirectiveLocationField, DirectiveLocationFragmentDefinition, DirectiveLocationFragmentSpread, DirectiveLocationInlineFragment, DirectiveLocationSchema, DirectiveLocationScalar, DirectiveLocationObject, DirectiveLocationFieldDefinition, DirectiveLocationArgumentDefinition, DirectiveLocationInterface, DirectiveLocationUnion, DirectiveLocationEnum, DirectiveLocationEnumValue, DirectiveLocationInputObject, DirectiveLocationInputFieldDefinition, }
View Source
var AllTypeKind = []TypeKind{ TypeKindScalar, TypeKindObject, TypeKindInterface, TypeKindUnion, TypeKindEnum, TypeKindInputObject, TypeKindList, TypeKindNonNull, }
Functions ¶
This section is empty.
Types ¶
type Directive ¶
type Directive struct { Name string `json:"name" ` Description *string `json:"description" ` Locations []string `json:"locations" ` Args []*introspection.InputValue `json:"args" ` }
type DirectiveLocation ¶
type DirectiveLocation string
const ( DirectiveLocationQuery DirectiveLocation = "QUERY" DirectiveLocationMutation DirectiveLocation = "MUTATION" DirectiveLocationSubscription DirectiveLocation = "SUBSCRIPTION" DirectiveLocationField DirectiveLocation = "FIELD" DirectiveLocationFragmentDefinition DirectiveLocation = "FRAGMENT_DEFINITION" DirectiveLocationFragmentSpread DirectiveLocation = "FRAGMENT_SPREAD" DirectiveLocationInlineFragment DirectiveLocation = "INLINE_FRAGMENT" DirectiveLocationSchema DirectiveLocation = "SCHEMA" DirectiveLocationScalar DirectiveLocation = "SCALAR" DirectiveLocationObject DirectiveLocation = "OBJECT" DirectiveLocationFieldDefinition DirectiveLocation = "FIELD_DEFINITION" DirectiveLocationArgumentDefinition DirectiveLocation = "ARGUMENT_DEFINITION" DirectiveLocationInterface DirectiveLocation = "INTERFACE" DirectiveLocationUnion DirectiveLocation = "UNION" DirectiveLocationEnum DirectiveLocation = "ENUM" DirectiveLocationEnumValue DirectiveLocation = "ENUM_VALUE" DirectiveLocationInputObject DirectiveLocation = "INPUT_OBJECT" DirectiveLocationInputFieldDefinition DirectiveLocation = "INPUT_FIELD_DEFINITION" )
func (DirectiveLocation) IsValid ¶
func (e DirectiveLocation) IsValid() bool
func (DirectiveLocation) MarshalGQL ¶
func (e DirectiveLocation) MarshalGQL(w io.Writer)
func (DirectiveLocation) String ¶
func (e DirectiveLocation) String() string
func (*DirectiveLocation) UnmarshalGQL ¶
func (e *DirectiveLocation) UnmarshalGQL(v interface{}) error
type Field ¶
type Field struct { Name string `json:"name" ` Description *string `json:"description" ` Args []*introspection.InputValue `json:"args" ` Type *introspection.Type `json:"type" ` IsDeprecated bool `json:"isDeprecated" ` DeprecationReason *string `json:"deprecationReason" ` }
type InputValue ¶
type InputValue struct { Name string `json:"name" ` Description *string `json:"description" ` Type *introspection.Type `json:"type" ` DefaultValue *string `json:"defaultValue" ` }
type Schema ¶
type Schema struct { Types []*introspection.Type `json:"types" ` QueryType *introspection.Type `json:"queryType" ` MutationType *introspection.Type `json:"mutationType" ` SubscriptionType *introspection.Type `json:"subscriptionType" ` Directives []*introspection.Directive `json:"directives" ` }
type Type ¶
type Type struct { Kind string `json:"kind" ` Name *string `json:"name" ` Description *string `json:"description" ` Fields []*introspection.Field `json:"fields" ` Interfaces []*introspection.Type `json:"interfaces" ` PossibleTypes []*introspection.Type `json:"possibleTypes" ` EnumValues []*introspection.EnumValue `json:"enumValues" ` InputFields []*introspection.InputValue `json:"inputFields" ` OfType *introspection.Type `json:"ofType" ` }
Click to show internal directories.
Click to hide internal directories.