Documentation
¶
Index ¶
- Constants
- type AuthSpec
- type GraphQL
- func (e *GraphQL) Cancel(_ core.ExecutionContext) error
- func (e *GraphQL) Cleanup(_ core.SetupContext) error
- func (e *GraphQL) Color() string
- func (e *GraphQL) Configuration() []configuration.Field
- func (e *GraphQL) Description() string
- func (e *GraphQL) Documentation() string
- func (e *GraphQL) ExampleOutput() map[string]any
- func (e *GraphQL) Execute(ctx core.ExecutionContext) error
- func (e *GraphQL) HandleHook(_ core.ActionHookContext) error
- func (e *GraphQL) HandleWebhook(_ core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (e *GraphQL) Hooks() []core.Hook
- func (e *GraphQL) Icon() string
- func (e *GraphQL) Label() string
- func (e *GraphQL) Name() string
- func (e *GraphQL) OutputChannels(_ any) []core.OutputChannel
- func (e *GraphQL) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (e *GraphQL) Setup(ctx core.SetupContext) error
- type Header
- type KeyValue
- type Spec
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) Configuration ¶
func (e *GraphQL) Configuration() []configuration.Field
func (*GraphQL) Description ¶
func (*GraphQL) Documentation ¶
func (*GraphQL) ExampleOutput ¶
func (*GraphQL) HandleHook ¶
func (e *GraphQL) HandleHook(_ core.ActionHookContext) error
func (*GraphQL) HandleWebhook ¶
func (e *GraphQL) HandleWebhook(_ core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*GraphQL) OutputChannels ¶
func (e *GraphQL) OutputChannels(_ any) []core.OutputChannel
func (*GraphQL) ProcessQueueItem ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.