Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args []*InputValue
type Directive ¶
type Directive struct { Name string `gql:"name=name"` Description *string `gql:"name=description"` Locations []ast.DirectiveLocation `gql:"name=locations"` Args ast.ArgumentDefinitionList `gql:"name=args"` ParentType string `gql:"storage=parentType"` Directive bool `gql:"storage=directive"` }
type DirectiveLocation ¶
type DirectiveLocation int
const ( DIRECTIVE_LOCATION_ERROR DirectiveLocation = iota DIRECTIVE_LOCATION_QUERY DIRECTIVE_LOCATION_MUTATION DIRECTIVE_LOCATION_SUBSCRIPTION DIRECTIVE_LOCATION_FIELD DIRECTIVE_LOCATION_FRAGMENT_DEFINITION DIRECTIVE_LOCATION_FRAGMENT_SPREAD DIRECTIVE_LOCATION_INLINE_FRAGMENT DIRECTIVE_LOCATION_SCHEMA DIRECTIVE_LOCATION_SCALAR DIRECTIVE_LOCATION_OBJECT DIRECTIVE_LOCATION_FIELD_DEFINITION DIRECTIVE_LOCATION_ARGUMENT_DEFINITION DIRECTIVE_LOCATION_INTERFACE DIRECTIVE_LOCATION_UNION DIRECTIVE_LOCATION_ENUM DIRECTIVE_LOCATION_ENUM_VALUE DIRECTIVE_LOCATION_INPUT_OBJECT DIRECTIVE_LOCATION_INPUT_FIELD_DEFINITION )
func SetDirectiveLocation ¶
func SetDirectiveLocation(typekind string) *DirectiveLocation
func (DirectiveLocation) EnumIndex ¶
func (o DirectiveLocation) EnumIndex() int
func (DirectiveLocation) Is ¶
func (o DirectiveLocation) Is(value string) bool
func (DirectiveLocation) String ¶
func (o DirectiveLocation) String() string
type Directives ¶
type Directives []*Directive
type EnumValues ¶
type EnumValues []*EnumValue
func (*EnumValues) IncludeDeprecated ¶
func (o *EnumValues) IncludeDeprecated(include bool) *EnumValues
type InputFields ¶
type InputFields []*InputValue
type InputValue ¶
type InputValue struct { Name string `gql:"name=name,storage=name"` Description *string `gql:"name=description,storage=description"` Type *ast.Type `gql:"name=type,storage=type"` DefaultValue *string `gql:"namez=defaultValue,storage=defaultValue"` ParentType string `gql:"storage=parentType"` FindIn string `gql:"storage=findIn"` }
type Interfaces ¶
type Interfaces []*Type
type Locations ¶
type Locations []*DirectiveLocation
type PossibleTypes ¶
type PossibleTypes []*Type
type Schema ¶
type Schema struct { Types map[string]*ast.Definition `gql:"name=types"` QueryType *ast.Definition `gql:"name=queryType"` MutationType *ast.Definition `gql:"name=mutationType"` SubscriptionType *ast.Definition `gql:"name=subscriptionType"` Directives map[string]*ast.DirectiveDefinition `gql:"name=directives"` }
type Type ¶
type Type struct { Kind TypeKind `gql:"name=kind"` Name *string `gql:"name=name"` Description *string `gql:"name=description"` // OBJECT and INTERFACE only Fields *ast.FieldList `gql:"name=fields"` // OBJECT only Interfaces *[]string `gql:"name=interfaces"` // INTERFACE and UNION only PossibleTypes *PossibleTypes `gql:"name=possibleTypes"` // ENUM only EnumValues *EnumValues `gql:"name=enumValues"` // INPUT_OBJECT only InputFields *InputFields `gql:"name=inputFields"` // NON_NULL and LIST only OfType *ast.Type `gql:"name=ofType"` }
Click to show internal directories.
Click to hide internal directories.