wait

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeInterval  = "interval"
	ModeCountdown = "countdown"
)
View Source
const PayloadType = "wait.finished"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionMetadata

type ExecutionMetadata struct {
	StartTime        string `json:"start_time" mapstructure:"start_time"`
	IntervalDuration int64  `json:"interval_duration" mapstructure:"interval_duration"` // Duration in milliseconds
}

type Spec

type Spec struct {
	Mode      string  `json:"mode"`
	WaitFor   any     `json:"waitFor"`
	Unit      *string `json:"unit"`
	WaitUntil any     `json:"waitUntil"`
}

type Wait

type Wait struct{}

func (*Wait) Actions

func (w *Wait) Actions() []core.Action

func (*Wait) Cancel

func (w *Wait) Cancel(ctx core.ExecutionContext) error

func (*Wait) Color

func (w *Wait) Color() string

func (*Wait) Configuration

func (w *Wait) Configuration() []configuration.Field

func (*Wait) Description

func (w *Wait) Description() string

func (*Wait) ExampleOutput added in v0.0.45

func (w *Wait) ExampleOutput() map[string]any

func (*Wait) Execute

func (w *Wait) Execute(ctx core.ExecutionContext) error

func (*Wait) HandleAction

func (w *Wait) HandleAction(ctx core.ActionContext) error

func (*Wait) HandlePushThrough

func (w *Wait) HandlePushThrough(ctx core.ActionContext) error

func (*Wait) HandleTimeReached

func (w *Wait) HandleTimeReached(ctx core.ActionContext) error

func (*Wait) HandleWebhook

func (w *Wait) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*Wait) Icon

func (w *Wait) Icon() string

func (*Wait) Label

func (w *Wait) Label() string

func (*Wait) Name

func (w *Wait) Name() string

func (*Wait) OutputChannels

func (w *Wait) OutputChannels(configuration any) []core.OutputChannel

func (*Wait) ProcessQueueItem

func (w *Wait) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*Wait) Setup

func (w *Wait) Setup(ctx core.SetupContext) error

Jump to

Keyboard shortcuts

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