Documentation
¶
Index ¶
- type NodeGraphQL
- func (n *NodeGraphQL) GetID() idwrap.IDWrap
- func (n *NodeGraphQL) GetName() string
- func (n *NodeGraphQL) GetOutputVariables() []string
- func (n *NodeGraphQL) GetRequiredVariables() []string
- func (n *NodeGraphQL) RunAsync(ctx context.Context, req *node.FlowNodeRequest, ...)
- func (n *NodeGraphQL) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
- func (n *NodeGraphQL) SetID(id idwrap.IDWrap)
- type NodeGraphQLSideResp
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 (n *NodeGraphQL) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
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{}
}
Click to show internal directories.
Click to hide internal directories.