parser

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument2

type Argument2 struct {
	*GoType
	Name string
}

type Enum

type Enum struct {
	*GoType
	Name        string
	Description string
	Values      []*EnumValue
}

type EnumValue

type EnumValue struct {
	Name        string
	Description string
}

type Field2

type Field2 struct {
	*GoType
	Name           string
	Description    string
	Tag            string
	ParentTypeName string
}

type FieldResolver2

type FieldResolver2 struct {
	Field      *Field2
	Middleware []string
}

type GoType

type GoType struct {
	TypeName *types.TypeName
}

type Interface

type Interface struct {
	*GoType
	Name        string
	Description string
}

type LambdaOnMutateEvent

type LambdaOnMutateEvent string
const (
	ADD    LambdaOnMutateEvent = "add"
	UPDATE LambdaOnMutateEvent = "update"
	DELETE LambdaOnMutateEvent = "delete"
)

type Model

type Model struct {
	*GoType
	Name           string
	Description    string
	Fields         []*Field2
	Implements     []*GoType
	LambdaOnMutate []LambdaOnMutateEvent
}

type ModelTree

type ModelTree struct {
	Interfaces map[string]*Interface
	Models     map[string]*Model
	Enums      map[string]*Enum
	Scalars    map[string]*Scalar
}

type Mutation2

type Mutation2 struct {
	Name        string
	Description string
	Arguments   []*Argument2
	Return      *GoType
	Middleware  []string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(schema *ast.Schema, packages *internal.Packages, defaultPackage *packages.Package) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*Tree, error)

type Query2

type Query2 struct {
	Name        string
	Description string
	Arguments   []*Argument2
	Return      *GoType
	Middleware  []string
}

type ResolverTree

type ResolverTree struct {
	FieldResolvers map[string]*FieldResolver2
	Queries        map[string]*Query2
	Mutations      map[string]*Mutation2
}

type Scalar

type Scalar struct {
	*GoType
	Name        string
	Description string
}

type Tree

type Tree struct {
	ModelTree    *ModelTree
	ResolverTree *ResolverTree
	Middleware   map[string]string
}

Jump to

Keyboard shortcuts

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