graphql

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = time.Second * 30
	MaxTimeout     = time.Second * 30

	SuccessOutputChannel = "success"
	FailureOutputChannel = "failure"

	AuthorizationTypeNone   = "none"
	AuthorizationTypeBearer = "bearer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSpec

type AuthSpec struct {
	Type  string                     `json:"type" mapstructure:"type"`
	Token configuration.SecretKeyRef `json:"token" mapstructure:"token"`
}

type GraphQL

type GraphQL struct{}

func (*GraphQL) Cancel

func (e *GraphQL) Cancel(_ core.ExecutionContext) error

func (*GraphQL) Cleanup

func (e *GraphQL) Cleanup(_ core.SetupContext) error

func (*GraphQL) Color

func (e *GraphQL) Color() string

func (*GraphQL) Configuration

func (e *GraphQL) Configuration() []configuration.Field

func (*GraphQL) Description

func (e *GraphQL) Description() string

func (*GraphQL) Documentation

func (e *GraphQL) Documentation() string

func (*GraphQL) ExampleOutput

func (e *GraphQL) ExampleOutput() map[string]any

func (*GraphQL) Execute

func (e *GraphQL) Execute(ctx core.ExecutionContext) error

func (*GraphQL) HandleHook

func (e *GraphQL) HandleHook(_ core.ActionHookContext) error

func (*GraphQL) HandleWebhook

func (*GraphQL) Hooks

func (e *GraphQL) Hooks() []core.Hook

func (*GraphQL) Icon

func (e *GraphQL) Icon() string

func (*GraphQL) Label

func (e *GraphQL) Label() string

func (*GraphQL) Name

func (e *GraphQL) Name() string

func (*GraphQL) OutputChannels

func (e *GraphQL) OutputChannels(_ any) []core.OutputChannel

func (*GraphQL) ProcessQueueItem

func (e *GraphQL) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*GraphQL) Setup

func (e *GraphQL) Setup(ctx core.SetupContext) error
type Header struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Spec

type Spec struct {
	URL            string      `json:"url"`
	Query          string      `json:"query"`
	Variables      *[]KeyValue `json:"variables,omitempty"`
	Headers        *[]Header   `json:"headers,omitempty"`
	Authorization  AuthSpec    `json:"authorization,omitempty" mapstructure:"authorization"`
	TimeoutSeconds *int        `json:"timeoutSeconds,omitempty"`
	SuccessCodes   *string     `json:"successCodes,omitempty"`
}

func (*Spec) GetSuccessCodes

func (s *Spec) GetSuccessCodes() string

func (*Spec) Timeout

func (s *Spec) Timeout() time.Duration

Jump to

Keyboard shortcuts

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