Documentation ¶
Index ¶
- type Argument
- type ArgumentList
- type BasicLit
- type Directive
- type DirectiveList
- type Ident
- type InputValue
- type InputValueList
- type Lexer
- func (l *Lexer) CatchSyntaxError(f func()) (errRes *errors.QueryError)
- func (l *Lexer) ConsumeIdent() string
- func (l *Lexer) ConsumeIdentWithLoc() Ident
- func (l *Lexer) ConsumeKeyword(keyword string)
- func (l *Lexer) ConsumeLiteral() *BasicLit
- func (l *Lexer) ConsumeToken(expected rune)
- func (l *Lexer) ConsumeWhitespace()
- func (l *Lexer) DescComment() string
- func (l *Lexer) Location() errors.Location
- func (l *Lexer) Peek() rune
- func (l *Lexer) SyntaxError(message string)
- type List
- type ListLit
- type Literal
- type NonNull
- type NullLit
- type ObjectLit
- type ObjectLitField
- type Resolver
- type Type
- type TypeName
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentList ¶
type ArgumentList []Argument
func ParseArguments ¶
func ParseArguments(l *Lexer) ArgumentList
func (ArgumentList) MustGet ¶
func (l ArgumentList) MustGet(name string) Literal
type Directive ¶
type Directive struct { Name Ident Args ArgumentList }
type DirectiveList ¶
type DirectiveList []*Directive
func ParseDirectives ¶
func ParseDirectives(l *Lexer) DirectiveList
func (DirectiveList) Get ¶
func (l DirectiveList) Get(name string) *Directive
type InputValue ¶
type InputValue struct { Name Ident Type Type Default Literal Desc string Loc errors.Location TypeLoc errors.Location }
http://facebook.github.io/graphql/draft/#InputValueDefinition
func ParseInputValue ¶
func ParseInputValue(l *Lexer) *InputValue
type InputValueList ¶
type InputValueList []*InputValue
func (InputValueList) Get ¶
func (l InputValueList) Get(name string) *InputValue
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
func (*Lexer) CatchSyntaxError ¶
func (l *Lexer) CatchSyntaxError(f func()) (errRes *errors.QueryError)
func (*Lexer) ConsumeIdent ¶
func (*Lexer) ConsumeIdentWithLoc ¶
func (*Lexer) ConsumeKeyword ¶
func (*Lexer) ConsumeLiteral ¶
func (*Lexer) ConsumeToken ¶
func (*Lexer) ConsumeWhitespace ¶
func (l *Lexer) ConsumeWhitespace()
ConsumeWhitespace consumes whitespace and tokens equivalent to whitespace (e.g. commas and comments).
Consumed comment characters will build the description for the next type or field encountered. The description is available from `DescComment()`, and will be reset every time `ConsumeWhitespace()` is executed unless l.useStringDescriptions is set.
func (*Lexer) DescComment ¶
func (*Lexer) SyntaxError ¶
type Literal ¶
type Literal interface { Value(vars map[string]interface{}) interface{} String() string Location() errors.Location }
func ParseLiteral ¶
type ObjectLit ¶
type ObjectLit struct { Fields []*ObjectLitField Loc errors.Location }
type ObjectLitField ¶
type Type ¶
func ResolveType ¶
func ResolveType(t Type, resolver Resolver) (Type, *errors.QueryError)
Click to show internal directories.
Click to hide internal directories.