generated

package
v0.0.0-...-56b00f8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 13 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 {
	Bench struct {
		Arch        func(childComplexity int) int
		BenchResult func(childComplexity int) int
		CPU         func(childComplexity int) int
		ID          func(childComplexity int) int
		Os          func(childComplexity int) int
		Package     func(childComplexity int) int
		Pass        func(childComplexity int) int
	}

	BenchConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	BenchEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	BenchResult struct {
		AllocedBytesPerOp func(childComplexity int) int
		AllocsPerOp       func(childComplexity int) int
		ID                func(childComplexity int) int
		MBPerS            func(childComplexity int) int
		Measured          func(childComplexity int) int
		N                 func(childComplexity int) int
		Name              func(childComplexity int) int
		NsPerOp           func(childComplexity int) int
		Ord               func(childComplexity int) int
	}

	BenchResultConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	BenchResultEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Mutation struct {
		CreateBenchmark func(childComplexity int, input ent.CreateBenchInput, results []*ent.CreateBenchResultInput) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Query struct {
		BenchResults func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.BenchResultWhereInput) int
		Benches      func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.BenchWhereInput) int
		Node         func(childComplexity int, id int) int
		Nodes        func(childComplexity int, ids []int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateBenchmark(ctx context.Context, input ent.CreateBenchInput, results []*ent.CreateBenchResultInput) (*ent.Bench, error)
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id int) (ent.Noder, error)
	Nodes(ctx context.Context, ids []int) ([]ent.Noder, error)
	Benches(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.BenchWhereInput) (*ent.BenchConnection, error)
	BenchResults(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.BenchResultWhereInput) (*ent.BenchResultConnection, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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