generated

package
v0.0.0-...-5bdfbad Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 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 {
		CalculatePrice func(childComplexity int, typeArg models.TradeType, margin float64, exchangeRate float64) int
	}

	Subscription struct {
		CalculatePrice func(childComplexity int, typeArg models.TradeType, margin float64, exchangeRate float64) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	CalculatePrice(ctx context.Context, typeArg models.TradeType, margin float64, exchangeRate float64) (float64, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	CalculatePrice(ctx context.Context, typeArg models.TradeType, margin float64, exchangeRate float64) (<-chan float64, error)
}

Jump to

Keyboard shortcuts

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