Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
Send signals the target workflow described by ref with the given result. Best-effort: if the target workflow has already terminated, the error is logged but not propagated.
func SignalName ¶
SignalName returns the deterministic signal name for a given id.
Types ¶
type Ref ¶
type Ref struct {
WorkflowID string `json:"workflow_id,omitempty"`
SignalName string `json:"signal_name,omitempty"`
Namespace string `json:"namespace,omitempty"`
}
Ref describes where to send a Temporal signal when an operation completes. It is stored as a JSONB column on QueueSignal and passed through the enqueue → handler → completion chain.
func New ¶
New creates a Ref pointing back to the current workflow with a deterministic signal name derived from id. The caller should register the signal channel before the handler starts to avoid races.
func (Ref) GormDataType ¶
GormDataType tells GORM to use the jsonb PostgreSQL type.