graph

package
v2.0.0-alpha56 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Emoji = "\U0001F430" + " Keploy:"

This file will not be regenerated automatically.

It serves as dependency injection for your app, add any dependencies you require here.

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, testSet string) int
	}

	Query struct {
		TestSetStatus func(childComplexity int, testRunID string) int
		TestSets      func(childComplexity int) int
	}

	RunTestSetResponse struct {
		Message   func(childComplexity int) int
		Success   func(childComplexity int) int
		TestRunID func(childComplexity int) int
	}

	TestSetStatus struct {
		Status 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 {
	RunTestSet(ctx context.Context, testSet string) (*model.RunTestSetResponse, error)
}

type QueryResolver

type QueryResolver interface {
	TestSets(ctx context.Context) ([]string, error)
	TestSetStatus(ctx context.Context, testRunID string) (*model.TestSetStatus, error)
}

type Resolver

type Resolver struct {
	Tester         test.Tester
	TestReportFS   platform.TestReportDB
	YS             platform.TestCaseDB
	LoadedHooks    *hooks.Hook
	Logger         *zap.Logger
	Path           string
	TestReportPath string
	Delay          uint64
	AppPid         uint32
	ApiTimeout     uint64
	ServeTest      bool
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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