ngraphql

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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