ngraphql

package
v0.0.0-...-820be1f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 15 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeGraphQL

type NodeGraphQL struct {
	FlowNodeID idwrap.IDWrap
	Name       string

	GraphQL      mgraphql.GraphQL
	Headers      []mgraphql.GraphQLHeader
	Asserts      []mgraphql.GraphQLAssert
	HttpClient   httpclient.HttpClient
	SideRespChan chan NodeGraphQLSideResp
	// contains filtered or unexported fields
}

func New

func New(
	id idwrap.IDWrap,
	name string,
	gql mgraphql.GraphQL,
	headers []mgraphql.GraphQLHeader,
	asserts []mgraphql.GraphQLAssert,
	httpClient httpclient.HttpClient,
	sideRespChan chan NodeGraphQLSideResp,
	logger *slog.Logger,
) *NodeGraphQL

func (*NodeGraphQL) GetID

func (n *NodeGraphQL) GetID() idwrap.IDWrap

func (*NodeGraphQL) GetName

func (n *NodeGraphQL) GetName() string

func (*NodeGraphQL) GetOutputVariables

func (n *NodeGraphQL) GetOutputVariables() []string

GetOutputVariables implements node.VariableIntrospector.

func (*NodeGraphQL) GetRequiredVariables

func (n *NodeGraphQL) GetRequiredVariables() []string

GetRequiredVariables implements node.VariableIntrospector.

func (*NodeGraphQL) RunAsync

func (n *NodeGraphQL) RunAsync(ctx context.Context, req *node.FlowNodeRequest, resultChan chan node.FlowNodeResult)

func (*NodeGraphQL) RunSync

func (*NodeGraphQL) SetID

func (n *NodeGraphQL) SetID(id idwrap.IDWrap)

type NodeGraphQLSideResp

type NodeGraphQLSideResp struct {
	ExecutionID idwrap.IDWrap
	GraphQL     mgraphql.GraphQL
	Headers     []mgraphql.GraphQLHeader
	Response    mgraphql.GraphQLResponse
	RespHeaders []mgraphql.GraphQLResponseHeader
	RespAsserts []mgraphql.GraphQLResponseAssert
	Done        chan struct{}
}

Jump to

Keyboard shortcuts

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