durables

package
v0.1.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoConfig = gb.WorkflowConfig{
	Name: "default.demo",
}

DemoConfig is a richer demo workflow (Echo twice).

View Source
var EchoConfig = gb.TaskConfig{
	Name: "default.echo",
}

EchoConfig is the compiler-visible task metadata for the default worker echo task.

View Source
var EchoOnceConfig = gb.WorkflowConfig{
	Name: "default.echo-once",
}

EchoOnceConfig is a thin one-activity workflow used to trigger Echo.

Functions

func Demo

func Demo(ctx workflow.Context, message string) (string, error)

Demo runs Echo twice and joins the results.

func Echo

func Echo(_ context.Context, message string) (string, error)

Echo is a standalone durable task (Temporal activity).

func EchoOnce

func EchoOnce(ctx workflow.Context, message string) (string, error)

EchoOnce runs Echo once.

func Register

func Register(w worker.Worker)

Register attaches this worker's workflows and activities to a Temporal worker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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