### Start the example starter Source: https://github.com/temporalio/samples-go/blob/main/codec-server/README.md Run this command to initiate the example workflow. ```bash go run ./starter ``` -------------------------------- ### Start Example Source: https://github.com/temporalio/samples-go/blob/main/encryption/README.md Command to start the example. ```bash go run starter/main.go ``` -------------------------------- ### Run the example starter Source: https://github.com/temporalio/samples-go/blob/main/metrics/README.md Command to start the example starter which will interact with the worker. ```bash go run metrics/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/start-delay/README.md This command starts the start-delay example. ```go go run start-delay/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/pickfirst/README.md Command to start the Temporal Pick First example. ```go go run pickfirst/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/greetings/README.md Command to start the Temporal starter for the greetings sample. ```bash go run greetings/starter/main.go ``` -------------------------------- ### Start the example starter Source: https://github.com/temporalio/samples-go/blob/main/slogadapter/README.md Command to start the starter for the slog adapter sample. ```bash go run slogadapter/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/dynamic/README.md Command to start the example that invokes activities by name. ```bash go run dynamic/starter/main.go ``` -------------------------------- ### Start the Example Starter Source: https://github.com/temporalio/samples-go/blob/main/early-return/README.md Command to run the starter for the early-return sample. ```go go run early-return/starter/main.go ``` -------------------------------- ### Start Example Source: https://github.com/temporalio/samples-go/blob/main/goroutine/README.md Command to start the goroutine sample execution. ```bash go run goroutine/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/splitmerge-selector/README.md Command to start the starter for the split-merge-selector sample. ```bash go run splitmerge-selector/starter/main.go ``` -------------------------------- ### Run the starter Source: https://github.com/temporalio/samples-go/blob/main/update/README.md Command to start the example starter for the update sample. ```bash go run update/starter/main.go ``` -------------------------------- ### Run the combined worker and example Source: https://github.com/temporalio/samples-go/blob/main/eager-workflow-start/README.md Starts the combined worker and the eager workflow start example. ```bash go run eager-workflow-start/main.go ``` -------------------------------- ### Run the example starter Source: https://github.com/temporalio/samples-go/blob/main/dynamic-workflows/README.md Command to start the starter for the dynamic workflows and activities example. ```bash go run dynamic-workflows/starter/main.go ``` -------------------------------- ### Start the example Source: https://github.com/temporalio/samples-go/blob/main/saga/README.md Command to start the Saga example, initiating the distributed transaction. ```bash go run saga/start/main.go ``` -------------------------------- ### Starter Command Source: https://github.com/temporalio/samples-go/blob/main/external-env-conf/README.md Command to start the starter example using external environment configuration. ```bash go run external-env-conf/starter/main.go ``` -------------------------------- ### Start Example Starter Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/callerpattern/README.md Runs the starter command to initiate the caller pattern example. ```bash go run ./nexus-messaging/callerpattern/caller/starter/main.go ``` -------------------------------- ### Start the Example Starter Source: https://github.com/temporalio/samples-go/blob/main/datadog/README.md Command to start the starter for the Datadog sample. ```bash go run datadog/starter/main.go ``` -------------------------------- ### Run the starter Source: https://github.com/temporalio/samples-go/blob/main/mutex/README.md Command to start the example that enqueues workflows using the mutex pattern. ```bash go run mutex/starter/main.go ``` -------------------------------- ### Start Starter Source: https://github.com/temporalio/samples-go/blob/main/standalone-activity/helloworld/README.md Command to start the starter for the standalone activity sample. ```bash go run standalone-activity/helloworld/starter/main.go ``` -------------------------------- ### Run the starter Source: https://github.com/temporalio/samples-go/blob/main/logger-interceptor/README.md Command to start the example starter for the logger interceptor sample. ```bash go run ./logger-interceptor/starter ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/polling/periodic_sequence/README.md Command to start the example starter for the periodic sequence sample. ```bash go run periodic_sequence/starter/main.go ``` -------------------------------- ### Run the example starter Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/ondemandpattern/README.md Command to run the starter script that initiates the on-demand pattern example. ```bash go run ./nexus-messaging/ondemandpattern/caller/starter/main.go ``` -------------------------------- ### Start Starter Source: https://github.com/temporalio/samples-go/blob/main/helloworld/README.md Command to start the Hello World starter, which initiates the workflow. ```bash go run helloworld/starter/main.go ``` -------------------------------- ### Start Workflow Source: https://github.com/temporalio/samples-go/blob/main/ctxpropagation/README.md Command to start the ctxpropagation Workflow. ```bash go run ctxpropagation/starter/main.go ``` -------------------------------- ### Start Starter Source: https://github.com/temporalio/samples-go/blob/main/zapadapter/README.md Command to start the starter for the Zap adapter sample, which initiates a workflow. ```bash go run zapadapter/starter/main.go ``` -------------------------------- ### Start Temporal Server Source: https://github.com/temporalio/samples-go/blob/main/helloworld/README.md Command to start a local Temporal development server. ```bash temporal server start-dev ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/memo/README.md Command to start the starter for the memo sample. ```bash go run ./memo/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/encryption/README.md Command to start the worker. ```bash go run worker/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/choice-multi/README.md Command to start the worker for the multi-choice sample. ```bash go run choice-multi/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/helloworldmtls/README.md Command to start the starter with mTLS configuration. ```bash go run ./helloworldmtls/starter -target-host my.namespace.tmprl.cloud:7233 -namespace my.namespace -client-cert path/to/cert.pem -client-key path/to/key.pem ``` -------------------------------- ### Start the example starter Source: https://github.com/temporalio/samples-go/blob/main/workflow-security-interceptor/README.md Command to start the starter for the child workflow type validation interceptor sample. ```bash go run ./workflow-security-interceptor/starter ``` -------------------------------- ### Start the workflow Source: https://github.com/temporalio/samples-go/blob/main/reqrespquery/README.md Command to start the workflow for the request/response sample. ```bash go run ./reqrespquery/starter ``` -------------------------------- ### Start Temporal service with eager workflow start enabled Source: https://github.com/temporalio/samples-go/blob/main/eager-workflow-start/README.md Starts a Temporal service with eager workflow start enabled via a dynamic configuration value. ```bash temporal server start-dev --dynamic-config-value system.enableEagerWorkflowStart=true ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/greetingslocal/README.md Command to start the starter for the greetings sample. ```bash go run greetingslocal/starter/main.go ``` -------------------------------- ### Run the starter Source: https://github.com/temporalio/samples-go/blob/main/updatabletimer/README.md Command to start the starter for the updatable timer sample. ```bash go run updatabletimer/starter/main.go ``` -------------------------------- ### Start the multi choice workflow Source: https://github.com/temporalio/samples-go/blob/main/choice-multi/README.md Command to start the multi-choice workflow. ```bash go run choice-multi/starter/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/greetings/README.md Command to start the Temporal worker for the greetings sample. ```bash go run greetings/worker/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/start-delay/README.md This command starts the worker for the start-delay sample. ```go go run start-delay/worker/main.go ``` -------------------------------- ### Start Starter Source: https://github.com/temporalio/samples-go/blob/main/retryactivity/README.md Command to start the starter for the retry activity sample. ```bash go run retryactivity/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/standalone-activity/helloworld/README.md Command to start the worker for the standalone activity sample. ```bash go run standalone-activity/helloworld/worker/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/recovery/README.md Command to start the recovery worker. ```bash go run recovery/worker/main.go ``` -------------------------------- ### Start Remote Codec Server Source: https://github.com/temporalio/samples-go/blob/main/encryption/README.md Command to start the remote codec server. ```bash go run ./codec-server ``` -------------------------------- ### Start Sample Expense System UI Source: https://github.com/temporalio/samples-go/blob/main/expense/README.md Command to start the UI for the sample expense system. ```bash go run expense/ui/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/slogadapter/README.md Command to start the Temporal worker for the slog adapter sample. ```bash go run slogadapter/worker/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/ctxpropagation/README.md Command to start the worker for the ctxpropagation Workflow. ```bash go run ctxpropagation/worker/main.go ``` -------------------------------- ### Run the starter Source: https://github.com/temporalio/samples-go/blob/main/timer/README.md Command to start the Temporal starter for the timer sample. ```bash go run timer/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/helloworld/README.md Command to start the Hello World worker. ```bash go run helloworld/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/splitmerge-future/README.md Command to start the starter for the split-merge-future sample. ```go go run splitmerge-future/starter/main.go ``` -------------------------------- ### Start Workflow Source: https://github.com/temporalio/samples-go/blob/main/reqrespactivity/README.md Command to start the workflow for the request/response activity sample. ```bash go run ./reqrespactivity/starter ``` -------------------------------- ### Start Temporal Service with Multi-Operation Enabled Source: https://github.com/temporalio/samples-go/blob/main/early-return/README.md This command starts a Temporal service in development mode with the necessary configuration for Update-with-Start. ```bash temporal server start-dev --dynamic-config-value frontend.enableExecuteMultiOperation=true ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/codec-server/README.md Run this command to start the worker process for the codec server. ```bash go run ./worker ``` -------------------------------- ### Start Recovery Workflow Source: https://github.com/temporalio/samples-go/blob/main/recovery/README.md Command to start the recovery workflow. ```bash go run recovery/starter/main.go -w recovery_workflow -wt recoveryworkflow -i '{"Type": "TripWorkflow", "Concurrency": 2}' ``` -------------------------------- ### Start Trip Workflow Source: https://github.com/temporalio/samples-go/blob/main/recovery/README.md Command to start the trip workflow. ```bash go run recovery/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/dsl/README.md Starts the worker for the DSL workflow. ```go go run dsl/worker/main.go ``` -------------------------------- ### Start Workflow Source: https://github.com/temporalio/samples-go/blob/main/reqrespupdate/README.md Command to start the workflow for the update-based request/response sample. ```bash go run ./reqrespupdate/starter ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/helloworld-apiKey/README.md Command to start the starter with API key authentication. ```bash go run ./helloworld-apiKey/starter \ -target-host my.namespace.tmprl.cloud:7233 \ -namespace my.namespace \ -api-key CLIENT_API_KEY ``` -------------------------------- ### Start the Worker Source: https://github.com/temporalio/samples-go/blob/main/early-return/README.md Command to run the worker for the early-return sample. ```go go run early-return/worker/main.go ``` -------------------------------- ### Start Starter Source: https://github.com/temporalio/samples-go/blob/main/polling/frequent/README.md Command to start the starter for the frequent polling sample. ```bash go run frequent/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/zapadapter/README.md Command to start the Temporal worker for the Zap adapter sample. ```bash go run zapadapter/worker/main.go ``` -------------------------------- ### Starter Command Source: https://github.com/temporalio/samples-go/blob/main/choice-exclusive/README.md Command to start the exclusive-choice workflow. ```bash go run choice-exclusive/starter/main.go ``` -------------------------------- ### Start Workflow Execution Source: https://github.com/temporalio/samples-go/blob/main/child-workflow/README.md Command to start the workflow execution for the child workflow sample. ```bash go run child-workflow/starter/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/external-storage/README.md Command to run the starter process for the sample. ```bash go run ./external-storage/starter ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/query/README.md Command to start the Temporal worker for the query sample. ```bash go run query/worker/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/pickfirst/README.md Command to start the Temporal worker for the Pick First sample. ```go go run pickfirst/worker/main.go ``` -------------------------------- ### Run the worker Source: https://github.com/temporalio/samples-go/blob/main/update/README.md Command to start the worker for the update sample. ```bash go run update/worker/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/child-workflow/README.md Command to start the worker process for the child workflow sample. ```bash go run child-workflow/worker/main.go ``` -------------------------------- ### Start the Worker Source: https://github.com/temporalio/samples-go/blob/main/child-workflow-continue-as-new/README.md Command to start the worker for the child workflow continue-as-new sample. ```bash go run child-workflow-continue-as-new/worker/main.go ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/helloworldmtls/README.md Command to start the worker with mTLS configuration. ```bash go run ./helloworldmtls/worker -target-host my.namespace.tmprl.cloud:7233 -namespace my.namespace -client-cert path/to/cert.pem -client-key path/to/key.pem ``` -------------------------------- ### Start caller worker Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/ondemandpattern/README.md Command to start the caller worker for the on-demand pattern example. ```bash go run ./nexus-messaging/ondemandpattern/caller/worker/main.go ``` -------------------------------- ### Start Temporal Dev Server with Search Attributes Source: https://github.com/temporalio/samples-go/blob/main/searchattributes/README.md Command to start a Temporal development server with custom search attributes configured. ```bash temporal server start-dev \ --search-attribute CustomIntField=Int \ --search-attribute CustomKeywordField=Keyword \ --search-attribute CustomBoolField=Bool \ --search-attribute CustomDoubleField=Double \ --search-attribute CustomDatetimeField=Datetime \ --search-attribute CustomKeywordListField=KeywordList ``` -------------------------------- ### Start Caller Worker Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/callerpattern/README.md Starts the caller worker process for the caller pattern example. ```bash go run ./nexus-messaging/callerpattern/caller/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/polling/infrequent/README.md Command to start the starter for the infrequent polling sample. ```bash go run infrequent/starter/main.go ``` -------------------------------- ### Start multiple parallel workflows Source: https://github.com/temporalio/samples-go/blob/main/multi-history-replay/README.md This command starts multiple parallel workflows, simulating existing workflows on the server. ```shell go run multi-history-replay/starter/main.go ``` -------------------------------- ### Start handler worker Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/ondemandpattern/README.md Command to start the handler worker for the on-demand pattern example. ```bash go run ./nexus-messaging/ondemandpattern/handler/worker/main.go ``` -------------------------------- ### Submit Start Request (Workflow 2) Source: https://github.com/temporalio/samples-go/blob/main/dsl/README.md Submits a start request for the workflow defined in dsl/workflow2.yaml. ```go go run dsl/starter/main.go -dslConfig=dsl/workflow2.yaml ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/greetingslocal/README.md Command to start the worker for the greetings sample. ```bash go run greetingslocal/worker/main.go ``` -------------------------------- ### Start Handler Worker Source: https://github.com/temporalio/samples-go/blob/main/nexus-messaging/callerpattern/README.md Starts the handler worker process for the caller pattern example. ```bash go run ./nexus-messaging/callerpattern/handler/worker/main.go ``` -------------------------------- ### Start the Parent Workflow Execution Source: https://github.com/temporalio/samples-go/blob/main/child-workflow-continue-as-new/README.md Command to start the parent workflow execution for the child workflow continue-as-new sample. ```bash go run child-workflow-continue-as-new/starter/main.go ``` -------------------------------- ### Submit Start Request (Workflow 1) Source: https://github.com/temporalio/samples-go/blob/main/dsl/README.md Submits a start request for the workflow defined in workflow1.yaml. ```go go run dsl/starter/main.go ``` -------------------------------- ### Run Worker v1.1 Source: https://github.com/temporalio/samples-go/blob/main/worker-versioning/README.md Command to start Worker version 1.1. ```bash go run worker-versioning/workerv1.1/main.go ``` -------------------------------- ### Run the worker Source: https://github.com/temporalio/samples-go/blob/main/metrics/README.md Command to start the Temporal worker with metrics enabled. ```bash go run metrics/worker/main.go ``` -------------------------------- ### Run Worker v1 Source: https://github.com/temporalio/samples-go/blob/main/worker-versioning/README.md Command to start Worker version 1.0. ```bash go run worker-versioning/workerv1/main.go ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/memo/README.md Command to start the worker for the memo sample. ```bash go run ./memo/worker/main.go ``` -------------------------------- ### Worker Logs Example Source: https://github.com/temporalio/samples-go/blob/main/zapadapter/README.md Example of worker logs showing workflow and activity execution, including structured JSON output from Zap. ```json 2021-06-21T17:31:59.836-0700 INFO internal/internal_worker.go:1001 Started Worker {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@"} 2021-06-21T17:32:02.246-0700 INFO reflect/value.go:476 Logging from workflow {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "Attempt": 1, "name": ""} 2021-06-21T17:32:02.246-0700 DEBUG internal/workflow.go:491 ExecuteActivity {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "Attempt": 1, "ActivityID": "5", "ActivityType": "Activity"} 2021-06-21T17:32:02.269-0700 INFO reflect/value.go:337 Executing Activity. {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "ActivityID": "5", "ActivityType": "Activity", "Attempt": 1, "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "name": ""} 2021-06-21T17:32:02.269-0700 DEBUG reflect/value.go:337 Debugging Activity. {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "ActivityID": "5", "ActivityType": "Activity", "Attempt": 1, "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "value": "important debug data"} 2021-06-21T17:32:02.284-0700 DEBUG internal/workflow.go:491 ExecuteActivity {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "Attempt": 1, "ActivityID": "11", "ActivityType": "ActivityError"} 2021-06-21T17:32:02.295-0700 WARN reflect/value.go:337 Ignore next error message. It is just for demo purpose. {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "ActivityID": "11", "ActivityType": "ActivityError", "Attempt": 1, "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766"} 2021-06-21T17:32:02.295-0700 ERROR reflect/value.go:337 Unable to execute ActivityError. {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "ActivityID": "11", "ActivityType": "ActivityError", "Attempt": 1, "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "error": "random error"} reflect.Value.Call /usr/local/go/src/reflect/value.go:337 go.temporal.io/sdk/internal.(*activityExecutor).Execute /home/user/go/pkg/mod/go.temporal.io/sdk@v1.7.0/internal/internal_worker.go:777 go.temporal.io/sdk/internal.(*activityTaskHandlerImpl).Execute /home/user/go/pkg/mod/go.temporal.io/sdk@v1.7.0/internal/internal_task_handlers.go:1816 go.temporal.io/sdk/internal.(*activityTaskPoller).ProcessTask /home/user/go/pkg/mod/go.temporal.io/sdk@v1.7.0/internal/internal_task_pollers.go:875 go.temporal.io/sdk/internal.(*baseWorker).processTask /home/user/go/pkg/mod/go.temporal.io/sdk@v1.7.0/internal/internal_worker_base.go:343 2021-06-21T17:32:02.310-0700 INFO reflect/value.go:476 Workflow completed. {"Namespace": "default", "TaskQueue": "zap-logger", "WorkerID": "506926@MainWorker@", "WorkflowType": "Workflow", "WorkflowID": "zap_logger_workflow_id", "RunID": "7f59f2a4-87a5-4a73-9020-076fdfa3c766", "Attempt": 1} ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/opentelemetry/README.md Command to start the OpenTelemetry worker. ```bash go run opentelemetry/worker/main.go ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/synchronous-proxy/README.md Command to start the worker for the synchronous proxy sample. ```shell go run synchronous-proxy/worker/main.go ``` -------------------------------- ### Run Worker v2 Source: https://github.com/temporalio/samples-go/blob/main/worker-versioning/README.md Command to start Worker version 2.0. ```bash go run worker-versioning/workerv2/main.go ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/goroutine/README.md Command to start the Temporal worker for the goroutine sample. ```bash go run goroutine/worker/main.go ``` -------------------------------- ### Run the worker Source: https://github.com/temporalio/samples-go/blob/main/multi-history-replay/README.md This command starts the worker for the multi-history replay sample. ```shell go run multi-history-replay/worker/main.go ``` -------------------------------- ### Run Simple UI Source: https://github.com/temporalio/samples-go/blob/main/synchronous-proxy/README.md Command to start the simple UI for the synchronous proxy sample. ```shell go run synchronous-proxy/ui/main.go ``` -------------------------------- ### Start the Workflow Execution Source: https://github.com/temporalio/samples-go/blob/main/branch/README.md Start the Workflow Execution. ```bash go run branch/starter/main.go ``` -------------------------------- ### Start a Worker Source: https://github.com/temporalio/samples-go/blob/main/branch/README.md From the root of the project, start a Worker. ```bash go run branch/worker/main.go ``` -------------------------------- ### Run Worker Source: https://github.com/temporalio/samples-go/blob/main/helloworld-apiKey/README.md Command to start the worker with API key authentication. ```bash go run ./helloworld-apiKey/worker \ -target-host my.namespace.tmprl.cloud:7233 \ -namespace my.namespace \ -api-key CLIENT_API_KEY ``` -------------------------------- ### Start the Web App Source: https://github.com/temporalio/samples-go/blob/main/shoppingcart/README.md Command to run the web application interface for the shopping cart sample. ```bash go run shoppingcart/ui/main.go ``` -------------------------------- ### Starter Command Source: https://github.com/temporalio/samples-go/blob/main/dynamicmtls/README.md Command to start the starter application with dynamic mTLS configuration. ```bash go run ./dynamicmtls/starter -target-host my.namespace.tmprl.cloud:7233 -namespace my.namespace -client-cert path/to/cert.pem -client-key path/to/key.pem ``` -------------------------------- ### Start Caller Workflow Source: https://github.com/temporalio/samples-go/blob/main/nexus-cancelation/README.md Command to start the caller workflow. ```bash cd caller go run ./starter \ -target-host localhost:7233 \ -namespace my-caller-namespace ``` -------------------------------- ### Starter Source: https://github.com/temporalio/samples-go/blob/main/batch-sliding-window/README.md Starts the Workflow Execution for the Sliding Window Batch Sample. ```bash go run batch-sliding-window/starter/main.go ``` -------------------------------- ### Start Cron Worker Source: https://github.com/temporalio/samples-go/blob/main/cron/README.md Starts the worker for the cron workflow. ```go go run cron/worker/main.go ``` -------------------------------- ### Run the main application Source: https://github.com/temporalio/samples-go/blob/main/worker-versioning/README.md Command to start the main application for the worker versioning sample. ```bash go run worker-versioning/app/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/cancellation/README.md Command to start the cancellation worker. ```bash go run cancellation/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/opentelemetry/README.md Command to run the starter for the OpenTelemetry workflow. ```bash go run opentelemetry/starter/main.go ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/splitmerge-selector/README.md Command to start the Temporal worker for the split-merge-selector sample. ```bash go run splitmerge-selector/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/session-failure/README.md Command to submit a start request for the session failure workflow. ```bash go run session-failure/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/retryactivity/README.md Command to start the worker for the retry activity sample. ```bash go run retryactivity/worker/main.go ``` -------------------------------- ### List Namespaces Source: https://github.com/temporalio/samples-go/blob/main/helloworld/README.md Command to list existing Temporal namespaces. ```bash temporal operator namespace list ``` -------------------------------- ### Run the Starter Source: https://github.com/temporalio/samples-go/blob/main/searchattributes/README.md Command to start the starter for the search attributes sample, which initiates the workflow. ```go go run searchattributes/starter/main.go ``` -------------------------------- ### Starter command Source: https://github.com/temporalio/samples-go/blob/main/await-signals/README.md Command to run the starter for the await-signals sample, which starts the workflow and sends signals in random order. ```bash go run await-signals/starter/main.go ``` -------------------------------- ### Start Worker Source: https://github.com/temporalio/samples-go/blob/main/polling/frequent/README.md Command to start the worker for the frequent polling sample. ```bash go run frequent/worker/main.go ``` -------------------------------- ### Run Starter Source: https://github.com/temporalio/samples-go/blob/main/fileprocessing/README.md Command to run the starter for the file processing sample to submit a workflow request. ```bash go run fileprocessing/starter/main.go ``` -------------------------------- ### Navigate to codec-server directory Source: https://github.com/temporalio/samples-go/blob/main/codec-server/README.md Before running any commands, change the directory to `codec-server/` as it's a separate Go module. ```bash cd codec-server ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/dynamic/README.md Command to start the worker for the dynamic invocation sample. ```bash go run dynamic/worker/main.go ``` -------------------------------- ### Start the remote codec server Source: https://github.com/temporalio/samples-go/blob/main/codec-server/README.md Launch the codec server. The `-web` flag is necessary for Temporal UI to handle CORS. ```bash go run ./codec-server -web=http://localhost:8080 ``` -------------------------------- ### Start the worker Source: https://github.com/temporalio/samples-go/blob/main/saga/README.md Command to start the Temporal worker for the Saga sample. ```bash go run saga/worker/main.go ``` -------------------------------- ### External Storage Configuration Source: https://github.com/temporalio/samples-go/blob/main/external-storage/README.md Example of configuring the SDK with an S3 driver and zlib codec for external storage. ```go driver, _ := s3driver.NewDriver(s3driver.Options{ Client: awssdkv2.NewClient(s3Client), Bucket: s3driver.StaticBucket(externalstorage.S3Bucket), }) client.Dial(client.Options{ DataConverter: converter.NewCodecDataConverter( converter.GetDefaultDataConverter(), converter.NewZlibCodec(converter.ZlibCodecOptions{AlwaysEncode: true}), ), ExternalStorage: converter.ExternalStorage{ Drivers: []converter.StorageDriver{driver}, }, }) ``` -------------------------------- ### Start PSO Workflow Source: https://github.com/temporalio/samples-go/blob/main/pso/README.md Submit a start request for the PSO workflow. ```go go run pso/starter/main.go ``` -------------------------------- ### Start the Worker Source: https://github.com/temporalio/samples-go/blob/main/datadog/README.md Command to start the Temporal worker with Datadog integration. ```bash go run datadog/worker/main.go ```