builder

package
v0.0.0-...-dbd926e Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCALAR      TypeKind = "SCALAR"
	LIST                 = "LIST"
	NONNULL              = "NONNULL"
	OBJECT               = "OBJECT"
	ENUM                 = "ENUM"
	INTERFACE            = "INTERFACE"
	UNION                = "UNION"
	INPUTOBJECT          = "INPUTOBJECT"
)

Variables

This section is empty.

Functions

func NewGQLBuilder

func NewGQLBuilder() *gqlBuilder

Types

type CodeData

type CodeData struct {
	PackageName         string
	Imports             map[string]string
	Types               map[string]FullType
	Dependencies        map[string]Dependency
	DependenciesNameMap map[string]string
	Marshallers         []TypeRef
	Unmarshallers       []TypeRef
	Sdl                 string
}

func (*CodeData) FullType

func (cd *CodeData) FullType(ref *TypeRef) FullType

type Dependency

type Dependency struct {
	Name string
	Type *TypeRef
}

type EnumValue

type EnumValue struct {
	Name              string
	Description       string
	IsDeprecated      bool
	DeprecationReason *string
}

type Field

type Field struct {
	Name              string
	Description       string
	Args              []InputValue
	Type              TypeRef
	IsDeprecated      bool
	DeprecationReason *string
	IsMethod          bool
	HasError          bool
	HasArgs           bool
	Params            []*types.Var
}

type FullType

type FullType struct {
	Kind          TypeKind
	Name          string
	Description   string
	Fields        []Field
	InputFields   []InputValue
	Interfaces    []TypeRef
	EnumValues    []EnumValue
	PossibleTypes []TypeRef
	Id            string
	PackageName   string
	PackagePath   string
}

type InputValue

type InputValue struct {
	Name        string
	Description string
	Type        TypeRef
}

type TypeKind

type TypeKind string

type TypeRef

type TypeRef struct {
	Kind   TypeKind
	Name   *string
	OfType *TypeRef
}

Directories

Path Synopsis
Code generated for package internal by go-bindata DO NOT EDIT.
Code generated for package internal by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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