api

package
v0.0.0-...-42cae90 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT 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 {
	Query struct {
		BoolTyped      func(childComplexity int, arg model.BoolTyped) int
		BoolTypedN     func(childComplexity int, arg *model.BoolTyped) int
		BoolUntyped    func(childComplexity int, arg bool) int
		BoolUntypedN   func(childComplexity int, arg *bool) int
		InPackage      func(childComplexity int, arg InPackage) int
		IntTyped       func(childComplexity int, arg model.IntTyped) int
		IntTypedN      func(childComplexity int, arg *model.IntTyped) int
		IntUntyped     func(childComplexity int, arg int) int
		IntUntypedN    func(childComplexity int, arg *int) int
		StringTyped    func(childComplexity int, arg model.StringTyped) int
		StringTypedN   func(childComplexity int, arg *model.StringTyped) int
		StringUntyped  func(childComplexity int, arg string) int
		StringUntypedN func(childComplexity int, arg *string) int
		VarTyped       func(childComplexity int, arg model.VarTyped) int
		VarUntyped     func(childComplexity int, arg bool) int
	}
}

type Config

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

type DirectiveRoot

type DirectiveRoot struct {
}

type InPackage

type InPackage bool
const (
	InPackageTrue  InPackage = true
	InPackageFalse InPackage = false
)

type QueryResolver

type QueryResolver interface {
	IntTyped(ctx context.Context, arg model.IntTyped) (model.IntTyped, error)
	IntUntyped(ctx context.Context, arg int) (int, error)
	IntTypedN(ctx context.Context, arg *model.IntTyped) (*model.IntTyped, error)
	IntUntypedN(ctx context.Context, arg *int) (*int, error)
	StringTyped(ctx context.Context, arg model.StringTyped) (model.StringTyped, error)
	StringUntyped(ctx context.Context, arg string) (string, error)
	StringTypedN(ctx context.Context, arg *model.StringTyped) (*model.StringTyped, error)
	StringUntypedN(ctx context.Context, arg *string) (*string, error)
	BoolTyped(ctx context.Context, arg model.BoolTyped) (model.BoolTyped, error)
	BoolUntyped(ctx context.Context, arg bool) (bool, error)
	BoolTypedN(ctx context.Context, arg *model.BoolTyped) (*model.BoolTyped, error)
	BoolUntypedN(ctx context.Context, arg *bool) (*bool, error)
	VarTyped(ctx context.Context, arg model.VarTyped) (model.VarTyped, error)
	VarUntyped(ctx context.Context, arg bool) (bool, error)
	InPackage(ctx context.Context, arg InPackage) (InPackage, error)
}

type Resolver

type Resolver struct{}

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver implementation.

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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