generated

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 12 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 {
	App struct {
		ID func(childComplexity int) int
	}

	BodyResult struct {
		Actual   func(childComplexity int) int
		Errors   func(childComplexity int) int
		Expected func(childComplexity int) int
		Normal   func(childComplexity int) int
		Type     func(childComplexity int) int
	}

	DepMetaResult struct {
		Actual   func(childComplexity int) int
		Expected func(childComplexity int) int
		Key      func(childComplexity int) int
		Normal   func(childComplexity int) int
	}

	DepResult struct {
		Meta func(childComplexity int) int
		Name func(childComplexity int) int
		Type func(childComplexity int) int
	}

	Dependency struct {
		Meta func(childComplexity int) int
		Name func(childComplexity int) int
		Type func(childComplexity int) int
	}

	HTTPReq struct {
		Body       func(childComplexity int) int
		Header     func(childComplexity int) int
		Method     func(childComplexity int) int
		ProtoMajor func(childComplexity int) int
		ProtoMinor func(childComplexity int) int
		URL        func(childComplexity int) int
		URLParam   func(childComplexity int) int
	}

	HTTPResp struct {
		Body       func(childComplexity int) int
		Header     func(childComplexity int) int
		StatusCode func(childComplexity int) int
	}

	Header struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	HeaderResult struct {
		Actual   func(childComplexity int) int
		Expected func(childComplexity int) int
		Key      func(childComplexity int) int
		Normal   func(childComplexity int) int
	}

	IntResult struct {
		Actual   func(childComplexity int) int
		Expected func(childComplexity int) int
		Normal   func(childComplexity int) int
	}

	JSONError struct {
		Key               func(childComplexity int) int
		MissingInActual   func(childComplexity int) int
		MissingInExpected func(childComplexity int) int
	}

	Kv struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	Mutation struct {
		DeleteTestCase func(childComplexity int, id string) int
		NormalizeTests func(childComplexity int, ids []string) int
		UpdateTestCase func(childComplexity int, tc []*model.TestCaseInput) int
	}

	Query struct {
		Apps     func(childComplexity int) int
		TestCase func(childComplexity int, app *string, id *string, offset *int, limit *int) int
		TestRun  func(childComplexity int, user *string, app *string, id *string, from *time.Time, to *time.Time, offset *int, limit *int) int
	}

	Result struct {
		BodyResult    func(childComplexity int) int
		DepResult     func(childComplexity int) int
		HeadersResult func(childComplexity int) int
		StatusCode    func(childComplexity int) int
	}

	Subscription struct {
		TestRun func(childComplexity int, app *string, id *string) int
	}

	Test struct {
		Completed  func(childComplexity int) int
		Deps       func(childComplexity int) int
		ID         func(childComplexity int) int
		Noise      func(childComplexity int) int
		Req        func(childComplexity int) int
		Result     func(childComplexity int) int
		Started    func(childComplexity int) int
		Status     func(childComplexity int) int
		TestCaseID func(childComplexity int) int
		URI        func(childComplexity int) int
	}

	TestCase struct {
		Anchors  func(childComplexity int) int
		App      func(childComplexity int) int
		Captured func(childComplexity int) int
		Cid      func(childComplexity int) int
		Created  func(childComplexity int) int
		Deps     func(childComplexity int) int
		HTTPReq  func(childComplexity int) int
		HTTPResp func(childComplexity int) int
		ID       func(childComplexity int) int
		Noise    func(childComplexity int) int
		URI      func(childComplexity int) int
		Updated  func(childComplexity int) int
	}

	TestRun struct {
		App     func(childComplexity int) int
		Created func(childComplexity int) int
		Failure func(childComplexity int) int
		ID      func(childComplexity int) int
		Status  func(childComplexity int) int
		Success func(childComplexity int) int
		Tests   func(childComplexity int) int
		Total   func(childComplexity int) int
		Updated func(childComplexity int) int
		User    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 {
	UpdateTestCase(ctx context.Context, tc []*model.TestCaseInput) (bool, error)
	DeleteTestCase(ctx context.Context, id string) (bool, error)
	NormalizeTests(ctx context.Context, ids []string) (bool, error)
}

type QueryResolver

type QueryResolver interface {
	Apps(ctx context.Context) ([]*model.App, error)
	TestRun(ctx context.Context, user *string, app *string, id *string, from *time.Time, to *time.Time, offset *int, limit *int) ([]*model.TestRun, error)
	TestCase(ctx context.Context, app *string, id *string, offset *int, limit *int) ([]*model.TestCase, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	TestRun(ctx context.Context, app *string, id *string) (<-chan []*model.TestRun, error)
}

Jump to

Keyboard shortcuts

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