Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type EntityResolver
- type ExerciseResolver
- type FlyingResolver
- type GamingResolver
- type OtherResolver
- type ProgrammingResolver
- type ResolverRoot
- type SubscriptionResolver
- type TravellingResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrTypeNotFound = errors.New("type not found") )
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Country struct { Key func(childComplexity int) int } CountryKey struct { Name func(childComplexity int) int } Employee struct { Hobbies func(childComplexity int) int ID func(childComplexity int) int } Entity struct { FindEmployeeByID func(childComplexity int, id int) int FindSDKByUpc func(childComplexity int, upc string) int } Exercise struct { Category func(childComplexity int) int Employees func(childComplexity int) int } Flying struct { Employees func(childComplexity int) int PlaneModels func(childComplexity int) int YearsOfExperience func(childComplexity int) int } Gaming struct { Employees func(childComplexity int) int Genres func(childComplexity int) int Name func(childComplexity int) int YearsOfExperience func(childComplexity int) int } Other struct { Employees func(childComplexity int) int Name func(childComplexity int) int } Programming struct { Employees func(childComplexity int) int Languages func(childComplexity int) int } Query struct { // contains filtered or unexported fields } SDK struct { ClientLanguages func(childComplexity int) int Upc func(childComplexity int) int } Subscription struct { CountHob func(childComplexity int, max int, intervalMilliseconds int) int } Travelling struct { CountriesLived func(childComplexity int) int Employees func(childComplexity int) int } // contains filtered or unexported fields }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EntityResolver ¶
type ExerciseResolver ¶
type FlyingResolver ¶
type GamingResolver ¶
type OtherResolver ¶
type ProgrammingResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Entity() EntityResolver Exercise() ExerciseResolver Flying() FlyingResolver Gaming() GamingResolver Other() OtherResolver Programming() ProgrammingResolver Subscription() SubscriptionResolver Travelling() TravellingResolver }
type SubscriptionResolver ¶
type TravellingResolver ¶
Click to show internal directories.
Click to hide internal directories.