datasource

package
v0.13.0-prerelease-test-1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DataSourceName = "ModusDataSource"

Variables

This section is empty.

Functions

func NewHypDSFactory

func NewHypDSFactory(ctx context.Context) plan.PlannerFactory[HypDSConfig]

Types

type HypDSConfig

type HypDSConfig struct {
	WasmHost wasmhost.WasmHost
	MapTypes []string
}

type HypDSPlanner

type HypDSPlanner struct {
	// contains filtered or unexported fields
}

func (*HypDSPlanner) ConfigureFetch

func (p *HypDSPlanner) ConfigureFetch() resolve.FetchConfiguration

func (*HypDSPlanner) ConfigureSubscription

func (p *HypDSPlanner) ConfigureSubscription() plan.SubscriptionConfiguration

func (*HypDSPlanner) DataSourcePlanningBehavior

func (p *HypDSPlanner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior

func (*HypDSPlanner) DownstreamResponseFieldAlias

func (p *HypDSPlanner) DownstreamResponseFieldAlias(downstreamFieldRef int) (alias string, exists bool)

func (*HypDSPlanner) EnterDocument

func (p *HypDSPlanner) EnterDocument(operation, definition *ast.Document)

func (*HypDSPlanner) EnterField

func (p *HypDSPlanner) EnterField(ref int)

func (*HypDSPlanner) LeaveDocument

func (p *HypDSPlanner) LeaveDocument(operation, definition *ast.Document)

func (*HypDSPlanner) Register

func (*HypDSPlanner) UpstreamSchema

func (p *HypDSPlanner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration[HypDSConfig]) (*ast.Document, bool)

type ModusDataSource

type ModusDataSource struct {
	WasmHost wasmhost.WasmHost
}

func (*ModusDataSource) Load

func (ds *ModusDataSource) Load(ctx context.Context, input []byte, out *bytes.Buffer) error

func (*ModusDataSource) LoadWithFiles

func (*ModusDataSource) LoadWithFiles(ctx context.Context, input []byte, files []httpclient.File, out *bytes.Buffer) (err error)

Jump to

Keyboard shortcuts

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