gqlassist

package
v0.0.0-...-27254ba Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileHeaderText = "// Code generated by gqlassist; DO NOT EDIT.\n\n"
)

Variables

This section is empty.

Functions

func ParseTemplate

func ParseTemplate(name, tpl string) *template.Template

Types

type GraphQLTypeDefGenerator

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

func (*GraphQLTypeDefGenerator) FetchRemoteSchema

func (g *GraphQLTypeDefGenerator) FetchRemoteSchema() (string, error)

func (*GraphQLTypeDefGenerator) Generate

func (g *GraphQLTypeDefGenerator) Generate() error

func (*GraphQLTypeDefGenerator) GetOutputDirectory

func (g *GraphQLTypeDefGenerator) GetOutputDirectory() string

func (*GraphQLTypeDefGenerator) GetTemplates

func (g *GraphQLTypeDefGenerator) GetTemplates(params map[string]interface{}) map[string]*template.Template

getTemplates returns a template map (filename->template)

type GraphQLTypeDefGeneratorConfig

type GraphQLTypeDefGeneratorConfig struct {
	Endpoint        string
	AuthHeader      string
	AuthToken       string
	OutputDirectory string
	OutputPackage   string
}

Jump to

Keyboard shortcuts

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