Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a thread-safe registry of task extensions keyed by extension id.
type TaskExtension ¶
type TaskExtension interface {
// Execute runs the custom interceptor logic.
// - record: the database record representing the task execution context.
// - payload: read-only map containing client submitted inputs. Extensions may
// inspect it but must not mutate it; any mutations are discarded.
// - properties: extension-specific parameters unmarshaled from template config.
Execute(ctx context.Context, record *store.TaskRecord, payload map[string]any, properties json.RawMessage) error
}
TaskExtension defines the interface for task complete step interceptors. An extension does one job and is unaware of when it runs — the orchestrator owns the lifecycle (which phase to invoke it in, blocking vs async, error handling). This keeps extensions single-purpose and reusable across any phase.
Click to show internal directories.
Click to hide internal directories.