schema

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexedFields

func IndexedFields() []string

IndexedFields returns a list of indexed fields.

func IsIndexed

func IsIndexed(str string) bool

IsIndexed returns if a given predicated is indexed or not.

func Parse

func Parse(file string) (rerr error)

Parse parses the schema file.

func ParseBytes

func ParseBytes(schema []byte) (rerr error)

ParseBytes parses the byte array which holds the schema.

func TypeOf

func TypeOf(pred string) types.Type

TypeOf returns the type of given field.

Types

type Item

type Item struct {
	Field string
	Typ   types.Type
}

Item contains the name of the field and its type

func ScalarList

func ScalarList(obj string) []Item

ScalarList returns the list of scalars in the geiven object.

Jump to

Keyboard shortcuts

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