generated

package
v0.0.0-...-d8853ad Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 EntityResolver interface {
	FindEmployeeByID(ctx context.Context, id int) (*model.Employee, error)
	FindSDKByUpc(ctx context.Context, upc string) (*model.Sdk, error)
}

type ExerciseResolver

type ExerciseResolver interface {
	Employees(ctx context.Context, obj *model.Exercise) ([]*model.Employee, error)
}

type FlyingResolver

type FlyingResolver interface {
	Employees(ctx context.Context, obj *model.Flying) ([]*model.Employee, error)
}

type GamingResolver

type GamingResolver interface {
	Employees(ctx context.Context, obj *model.Gaming) ([]*model.Employee, error)
}

type OtherResolver

type OtherResolver interface {
	Employees(ctx context.Context, obj *model.Other) ([]*model.Employee, error)
}

type ProgrammingResolver

type ProgrammingResolver interface {
	Employees(ctx context.Context, obj *model.Programming) ([]*model.Employee, error)
}

type ResolverRoot

type ResolverRoot interface {
	Entity() EntityResolver
	Exercise() ExerciseResolver
	Flying() FlyingResolver
	Gaming() GamingResolver
	Other() OtherResolver
	Programming() ProgrammingResolver
	Subscription() SubscriptionResolver
	Travelling() TravellingResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	CountHob(ctx context.Context, max int, intervalMilliseconds int) (<-chan int, error)
}

type TravellingResolver

type TravellingResolver interface {
	Employees(ctx context.Context, obj *model.Travelling) ([]*model.Employee, error)
}

Jump to

Keyboard shortcuts

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