graphqlsch

package
v0.0.0-...-d807e2c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SerializeSchema

func SerializeSchema(s *Schema, w io.Writer) error

Types

type Field

type Field struct {
	Name           string
	Type           PrimitiveType
	IsNullable     bool
	IsArray        bool
	IsElemNullable bool
	ArrayDim       uint
}

func (Field) ToString

func (f Field) ToString() string

type PrimitiveType

type PrimitiveType string
const (
	String  PrimitiveType = "String"
	Int     PrimitiveType = "Int"
	Float   PrimitiveType = "Float"
	Boolean PrimitiveType = "Boolean"
	ID      PrimitiveType = "ID"
)

type Schema

type Schema struct {
	Types []Type
}

func New

func New(types []Type) *Schema

type Type

type Type struct {
	Name   string
	Fields []Field
}

func NewType

func NewType(name string, fields []Field) Type

func (Type) ToString

func (t Type) ToString() string

Jump to

Keyboard shortcuts

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