manager

package
v0.0.0-...-2e367bb Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Planets struct {
		Climate        func(childComplexity int) int
		Diameter       func(childComplexity int) int
		Gravity        func(childComplexity int) int
		Name           func(childComplexity int) int
		OrbitalPeriod  func(childComplexity int) int
		Population     func(childComplexity int) int
		Residents      func(childComplexity int) int
		RotationPeriod func(childComplexity int) int
		SurfaceWater   func(childComplexity int) int
		Terrain        func(childComplexity int) int
		Url            func(childComplexity int) int
	}

	Query struct {
		GetPlanets func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	GetPlanets(ctx context.Context) (*planets.Planets, error)
}

type Resolver

type Resolver struct{}

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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