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 { EvaluateOutput struct { Bestmove func(childComplexity int) int Depth func(childComplexity int) int Nodes func(childComplexity int) int Pv func(childComplexity int) int Value func(childComplexity int) int } Mutation struct { Foo func(childComplexity int) int } Query struct { Evaluate func(childComplexity int, input EvaluateInput) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EvaluateInput ¶
type EvaluateOutput ¶
type QueryResolver ¶
type QueryResolver interface {
Evaluate(ctx context.Context, input EvaluateInput) (*EvaluateOutput, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.