generated

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 14 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 {
	Eval struct {
		Result  func(childComplexity int) int
		Snippet func(childComplexity int) int
		Time    func(childComplexity int) int
	}

	Mutation struct {
		EvaluateSnippet func(childComplexity int, input model.EvalInput) int
	}

	Query struct {
	}

	Subscription struct {
		GetEvaluatedSnippets func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	EvaluateSnippet(ctx context.Context, input model.EvalInput) (*ent.Eval, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	GetEvaluatedSnippets(ctx context.Context) (<-chan []*ent.Eval, error)
}

Jump to

Keyboard shortcuts

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