Documentation
¶
Index ¶
- type ExecutionMetadata
- type Merge
- func (m *Merge) Actions() []core.Action
- func (m *Merge) Cancel(ctx core.ExecutionContext) error
- func (m *Merge) Color() string
- func (m *Merge) Configuration() []configuration.Field
- func (m *Merge) Description() string
- func (m *Merge) ExampleOutput() map[string]any
- func (m *Merge) Execute(ctx core.ExecutionContext) error
- func (m *Merge) HandleAction(ctx core.ActionContext) error
- func (m *Merge) HandleTimeout(ctx core.ActionContext) error
- func (m *Merge) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (m *Merge) Icon() string
- func (m *Merge) Label() string
- func (m *Merge) Name() string
- func (m *Merge) OutputChannels(configuration any) []core.OutputChannel
- func (m *Merge) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (m *Merge) Setup(ctx core.SetupContext) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionMetadata ¶
type ExecutionMetadata struct {
// GroupKey is a logical key used to correlate queue items into a single execution
GroupKey string `json:"groupKey,omitempty" mapstructure:"groupKey"`
// EventIDs collects upstream event ids that reached this merge
EventIDs []string `json:"eventIDs,omitempty" mapstructure:"eventIDs"`
// Sources collects distinct upstream source node ids that reached this merge
Sources []string `json:"sources,omitempty" mapstructure:"sources"`
// StopEarly indicates the merge was short-circuited based on a stop condition
StopEarly bool `json:"stopEarly,omitempty" mapstructure:"stopEarly"`
}
type Merge ¶
type Merge struct{}
func (*Merge) Configuration ¶
func (m *Merge) Configuration() []configuration.Field
func (*Merge) Description ¶
func (*Merge) ExampleOutput ¶ added in v0.0.45
func (*Merge) HandleAction ¶
func (m *Merge) HandleAction(ctx core.ActionContext) error
func (*Merge) HandleTimeout ¶
func (m *Merge) HandleTimeout(ctx core.ActionContext) error
func (*Merge) HandleWebhook ¶
func (m *Merge) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*Merge) OutputChannels ¶
func (m *Merge) OutputChannels(configuration any) []core.OutputChannel
func (*Merge) ProcessQueueItem ¶
type Spec ¶
type Spec struct {
ExecutionTimeout struct {
Value int `json:"value"`
Unit string `json:"unit"`
} `json:"executionTimeout"`
// Optional expression to short-circuit waiting for all inputs.
// The expression is evaluated against the incoming event input using
// the Expr language with the input bound to the variable '$'.
// If it evaluates to true, the merge finishes immediately.
StopIfExpression string `json:"stopIfExpression" mapstructure:"stopIfExpression"`
}
Click to show internal directories.
Click to hide internal directories.