engine

package
v0.0.0-...-83efb8c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQueryPlan

func ExecuteQueryPlan(ctx context.Context, queryPlan *plan.QueryPlan, serviceMap ServiceMap, schema *ast.Schema, requestContext *graphql.OperationContext) *graphql.Response

Types

type DataSource

type DataSource interface {
	Process(ctx context.Context, oc *graphql.OperationContext) *graphql.Response
}

type LocalDataSource

type LocalDataSource struct {
	ExecutableSchema graphql.ExecutableSchema
}

func (*LocalDataSource) Process

func (*LocalDataSource) SDL

type RemoteDataSource

type RemoteDataSource struct {
	URL string

	Client *http.Client
}

func (*RemoteDataSource) Process

type ServiceMap

type ServiceMap map[string]DataSource

Jump to

Keyboard shortcuts

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