generated

package
v0.0.0-...-b207ad6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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 {
		CreateCluster func(childComplexity int, input model.ClusterInput) int
	}

	Query struct {
	}

	Subscription struct {
		ClusterSubscription func(childComplexity int) int
	}

	ClusterResponse struct {
		Data func(childComplexity int) int
		ID   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 {
	CreateCluster(ctx context.Context, input model.ClusterInput) (*model.ClusterResponse, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	ClusterSubscription(ctx context.Context) (<-chan *model.ClusterResponse, error)
}

Jump to

Keyboard shortcuts

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