schema

package
v0.0.0-...-16c3363 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum struct {
	Name   string
	Values []string
}

func (*Enum) Kind

func (*Enum) Kind() string

func (*Enum) TypeName

func (t *Enum) TypeName() string

type Field

type Field struct {
	Name string
	Args common.InputMap
	Type common.Type
}

type InputObject

type InputObject struct {
	Name string
	common.InputMap
}

func (*InputObject) Kind

func (*InputObject) Kind() string

func (*InputObject) TypeName

func (t *InputObject) TypeName() string

type Interface

type Interface struct {
	Name          string
	PossibleTypes []*Object
	Fields        map[string]*Field
	FieldOrder    []string
}

func (*Interface) Kind

func (*Interface) Kind() string

func (*Interface) TypeName

func (t *Interface) TypeName() string

type NamedType

type NamedType interface {
	common.Type
	TypeName() string
}

type Object

type Object struct {
	Name       string
	Interfaces []*Interface
	Fields     map[string]*Field
	FieldOrder []string
	// contains filtered or unexported fields
}

func (*Object) Kind

func (*Object) Kind() string

func (*Object) TypeName

func (t *Object) TypeName() string

type Schema

type Schema struct {
	EntryPoints map[string]NamedType
	Types       map[string]NamedType
	// contains filtered or unexported fields
}

func New

func New() *Schema

func (*Schema) Parse

func (s *Schema) Parse(schemaString string) error

func (*Schema) Resolve

func (s *Schema) Resolve(name string) common.Type

type Union

type Union struct {
	Name          string
	PossibleTypes []*Object
	// contains filtered or unexported fields
}

func (*Union) Kind

func (*Union) Kind() string

func (*Union) TypeName

func (t *Union) TypeName() string

Jump to

Keyboard shortcuts

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