generated

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 10 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 {
		PurgeAll            func(childComplexity int) int
		PurgeOperation      func(childComplexity int, name string) int
		PurgeQueryRootField func(childComplexity int, field string) int
		PurgeType           func(childComplexity int, typeArg string) int
		PurgeTypeKey        func(childComplexity int, typeArg string, field string, key string) int
	}

	Query struct {
		Dummy 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 {
	PurgeAll(ctx context.Context) (bool, error)
	PurgeOperation(ctx context.Context, name string) (bool, error)
	PurgeTypeKey(ctx context.Context, typeArg string, field string, key string) (bool, error)
	PurgeQueryRootField(ctx context.Context, field string) (bool, error)
	PurgeType(ctx context.Context, typeArg string) (bool, error)
}

type QueryResolver

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