graphql_executor

package
v0.0.0-...-4a1b032 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLExecutor

type GraphQLExecutor struct {
	*http_executor.HttpExecutor
	// contains filtered or unexported fields
}

func NewGraphQLExecutor

func NewGraphQLExecutor() *GraphQLExecutor

NewGraphQLExecutor creates a new GraphQLExecutor

func (*GraphQLExecutor) Description

func (e *GraphQLExecutor) Description() string

func (*GraphQLExecutor) Execute

func (e *GraphQLExecutor) Execute(ctx context.Context, task *types.Task, wf []*types.Task) (interface{}, error)

func (*GraphQLExecutor) ID

func (e *GraphQLExecutor) ID() string

func (*GraphQLExecutor) InputRules

func (e *GraphQLExecutor) InputRules() map[string]interface{}

func (*GraphQLExecutor) Name

func (e *GraphQLExecutor) Name() string

func (*GraphQLExecutor) New

func (e *GraphQLExecutor) New() types.Executor

func (*GraphQLExecutor) OutputRules

func (e *GraphQLExecutor) OutputRules() map[string]interface{}

func (*GraphQLExecutor) Validate

func (e *GraphQLExecutor) Validate(ctx context.Context, task *types.Task, tasks []*types.Task) error

type Input

type Input struct {
	URL       string                 `json:"url" valid:"required,url"`
	Headers   map[string]string      `json:"headers" valid:"dictionary"`
	Query     string                 `json:"query" valid:"required"`
	Variables map[string]interface{} `json:"variables" valid:"dictionary"`
}

type Output

type Output struct {
	Headers map[string]string      `json:"headers" valid:"required,dictionary"`
	Body    map[string]interface{} `json:"body" valid:"required,dictionary"`
}

Jump to

Keyboard shortcuts

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