scan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoFields = errors.New("file does not contain any object definition with fields")
	ErrNoInputs = errors.New("file does not contain any object definition with fields")
)
View Source
var ErrNotAResolver = errors.New("not a resolver")

Functions

This section is empty.

Types

type ExecFile

type ExecFile struct {
	Dir, Name, Ext string

	ObjectName string
	Fields     []*ast.FieldDefinition
}

func (*ExecFile) Path

func (ef *ExecFile) Path() string

func (*ExecFile) Scan

func (ef *ExecFile) Scan() error

type File

type File interface {
	Path() string
	Scan() error
}

func NewFile

func NewFile(path string, info fs.FileInfo) File

type GraphqlFile

type GraphqlFile struct {
	Dir, Name string

	Objects    []*ast.ObjectDefinition
	Inputs     []*ast.InputObjectDefinition
	Enums      []*ast.EnumDefinition
	Interfaces []*ast.InterfaceDefinition
}

func (*GraphqlFile) Path

func (gf *GraphqlFile) Path() string

func (*GraphqlFile) Scan

func (gf *GraphqlFile) Scan() error

Jump to

Keyboard shortcuts

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