common

package
v0.0.0-...-dcd44e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2017 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseValue

func ParseValue(l *lexer.Lexer, constOnly bool) interface{}

Types

type InputMap

type InputMap struct {
	Fields     map[string]*InputValue
	FieldOrder []string
}

type InputValue

type InputValue struct {
	Name    string
	Type    Type
	Default interface{}
	Desc    string
}

func ParseInputValue

func ParseInputValue(l *lexer.Lexer) *InputValue

type List

type List struct {
	OfType Type
}

func (*List) Kind

func (*List) Kind() string

func (*List) String

func (t *List) String() string

type NonNull

type NonNull struct {
	OfType Type
}

func (*NonNull) Kind

func (*NonNull) Kind() string

func (*NonNull) String

func (t *NonNull) String() string

type Resolver

type Resolver func(name string) Type

type Type

type Type interface {
	Kind() string
	String() string
}

func ParseType

func ParseType(l *lexer.Lexer) Type

func ResolveType

func ResolveType(t Type, resolver Resolver) (Type, error)

type TypeName

type TypeName struct {
	Name string
}

func (*TypeName) Kind

func (*TypeName) Kind() string

func (*TypeName) String

func (*TypeName) String() string

type Variable

type Variable string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL