Documentation
¶
Index ¶
- Constants
- type OnError
- func (t *OnError) Cleanup(ctx core.TriggerContext) error
- func (t *OnError) Color() string
- func (t *OnError) Configuration() []configuration.Field
- func (t *OnError) Description() string
- func (t *OnError) Documentation() string
- func (t *OnError) ExampleData() map[string]any
- func (t *OnError) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (t *OnError) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (t *OnError) Hooks() []core.Hook
- func (t *OnError) Icon() string
- func (t *OnError) Label() string
- func (t *OnError) Name() string
- func (t *OnError) Setup(ctx core.TriggerContext) error
Constants ¶
View Source
const PayloadType = "onError.triggered"
PayloadType is the event type emitted whenever the trigger fires.
View Source
const TriggerName = "onError"
TriggerName is the registered name of the On Error trigger.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnError ¶
type OnError struct{}
OnError is a canvas-wide error handler. It is not wired through edges like a regular trigger; instead, whenever any execution in the canvas finishes with an "error" result (the component could not execute), the failure path emits a root event on every OnError node in that canvas. See contexts.DispatchOnError.
func (*OnError) Configuration ¶
func (t *OnError) Configuration() []configuration.Field
func (*OnError) Description ¶
func (*OnError) Documentation ¶
func (*OnError) ExampleData ¶
func (*OnError) HandleHook ¶
func (*OnError) HandleWebhook ¶
func (t *OnError) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
Click to show internal directories.
Click to hide internal directories.