Documentation ¶
Overview ¶
Package graph provides the resolver implementation for the GraphQL schema.
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 { RunTestSet func(childComplexity int, testSetID string, testRunID string, appID int) int StartApp func(childComplexity int, appID int) int StartHooks func(childComplexity int) int StopApp func(childComplexity int, appID int) int StopHooks func(childComplexity int) int } Query struct { TestSetStatus func(childComplexity int, testRunID string, testSetID string) int TestSets func(childComplexity int) int } TestRunInfo struct { AppID func(childComplexity int) int TestRunID func(childComplexity int) int } TestSetStatus struct { Status 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 { RunTestSet(ctx context.Context, testSetID string, testRunID string, appID int) (bool, error) StartHooks(ctx context.Context) (*model.TestRunInfo, error) StartApp(ctx context.Context, appID int) (bool, error) StopHooks(ctx context.Context) (bool, error) StopApp(ctx context.Context, appID int) (bool, error) }
type QueryResolver ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.