Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrNilTemporalClient = erorr.Error("nil temporal-client") ErrNilWorker = erorr.Error("nil worker") )
View Source
const TaskQueueName = "laterpub_queue"
Variables ¶
This section is empty.
Functions ¶
func ExecuteWorkflow ¶
func ExecuteWorkflow(ctx context.Context, temporalClient temporalclient.Client, workflowName string, request any) (temporalclient.WorkflowRun, error)
ExecuteWorkflow executes a Temporal workflow by name, using a string name, and with a single parameter. (Likely, the single parameter with be a struct.)
func RegisterWorkflow ¶
func RegisterWorkflow(worker temporalworker.Worker, workflowName string, fn any) error
RegisterWorkflow registers a Temporal workflow by name, using a string name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.