generation

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments []argument

Arguments Arguments export

type Field

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

Field Field export

type Fragment

type Fragment struct {
	Struct
	// contains filtered or unexported fields
}

Fragment Fragment export

func (Fragment) Name

func (f Fragment) Name() string

Name Name export

type PayloadStruct

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

PayloadStruct PayloadStruct export

func (PayloadStruct) Print

func (p PayloadStruct) Print() string

Print Print export

type Query

type Query struct {
	Query string

	Name      string
	Arguments Arguments
	Payload   *PayloadStruct
	// contains filtered or unexported fields
}

Query Query export

func GenerateStruct

func GenerateStruct(query *ast.QueryDocument) ([]Query, error)

GenerateStruct GenerateStruct export

type Struct

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

Struct Struct export

func (Struct) Name

func (s Struct) Name() string

Name Name export

func (Struct) Print

func (s Struct) Print() string

Print Print export

type Structs

type Structs []Struct

func GenerateInputStructs

func GenerateInputStructs(schema *ast.Schema) (Structs, error)

GenerateInputStructs GenerateInputStructs export

func (Structs) Print

func (ss Structs) Print() string

Print Print export

Jump to

Keyboard shortcuts

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