temporal

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package temporal provides Temporal options for agent.NewAgent.

Import this package (and use WithTemporalConfig or WithTemporalClient) only when the app needs Temporal. Prefer this package over the deprecated agent.WithTemporalConfig helpers so the intent to link the Temporal SDK is explicit at the import site.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTemporalClient

func WithTemporalClient(tc client.Client, taskQueue string) agent.Option

WithTemporalClient sets a pre-configured client for the Temporal execution runtime. Task queue must still be set via taskQueue. Use either WithTemporalConfig or WithTemporalClient, not both. The agent does not close the client when Close() is called; the caller owns the lifecycle.

func WithTemporalConfig

func WithTemporalConfig(cfg *TemporalConfig) agent.Option

WithTemporalConfig sets connection options for the Temporal execution runtime. Use either WithTemporalConfig or WithTemporalClient, not both.

Types

type TemporalConfig

type TemporalConfig = temporal_runtime.TemporalConfig

TemporalConfig holds connection settings for the Temporal-based execution runtime.

Jump to

Keyboard shortcuts

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