generated

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 13 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 {
	Mutation struct {
		PushSchema func(childComplexity int, schemaInput model.SchemaInput) int
	}

	Query struct {
		GetAllSchemas func(childComplexity int) int
		GetSchema     func(childComplexity int, services []string) int
	}

	Schema struct {
		ServiceName func(childComplexity int) int
		ServiceURL  func(childComplexity int) int
		TypeDefs    func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	PushSchema(ctx context.Context, schemaInput model.SchemaInput) (bool, error)
}

type QueryResolver

type QueryResolver interface {
	GetSchema(ctx context.Context, services []string) ([]*model.Schema, error)
	GetAllSchemas(ctx context.Context) ([]*model.Schema, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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