internalschema

package
v0.0.0-...-f2e3332 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 11 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 {
		GenerateApplicationToken func(childComplexity int, appID string) int
		GenerateRuntimeToken     func(childComplexity int, runtimeID string) int
	}

	Query struct {
		IsHealthy func(childComplexity int) int
	}

	Token struct {
		Token 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 {
	GenerateApplicationToken(ctx context.Context, appID string) (*externalschema.Token, error)
	GenerateRuntimeToken(ctx context.Context, runtimeID string) (*externalschema.Token, error)
}

type QueryResolver

type QueryResolver interface {
	IsHealthy(ctx context.Context) (bool, 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