Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeKindScalar = TypeKind("SCALAR") TypeKindObject = TypeKind("OBJECT") TypeKindInterface = TypeKind("INTERFACE") TypeKindUnion = TypeKind("UNION") TypeKindEnum = TypeKind("ENUM") TypeKindInputObject = TypeKind("INPUT_OBJECT") TypeKindList = TypeKind("LIST") TypeKindNonNull = TypeKind("NON_NULL") )
View Source
const ( ScalarInt = Scalar("Int") ScalarFloat = Scalar("Float") ScalarString = Scalar("String") ScalarBoolean = Scalar("Boolean") )
Variables ¶
View Source
var Query string
Query is the query generated by graphiql to determine type information
Functions ¶
This section is empty.
Types ¶
type InputValue ¶
type InputValues ¶
type InputValues []InputValue
func (InputValues) HasOptionals ¶
func (i InputValues) HasOptionals() bool
type Response ¶
type Response struct {
Schema *Schema `json:"__schema"`
}
Response is the introspection query response
type Schema ¶
type Schema struct { QueryType struct { Name string `json:"name"` } `json:"queryType"` MutationType struct { Name string `json:"name"` } `json:"mutationType"` SubscriptionType struct { Name string `json:"name"` } `json:"subscriptionType"` Types Types `json:"types"` }
func (*Schema) Subscription ¶
func (*Schema) Visit ¶
func (s *Schema) Visit(handlers VisitHandlers) error
type TypeRef ¶
type TypeRef struct { Kind TypeKind `json:"kind"` Name string `json:"name,omitempty"` OfType *TypeRef `json:"ofType,omitempty"` }
func (TypeRef) IsOptional ¶
type VisitHandlers ¶
Click to show internal directories.
Click to hide internal directories.