Help us shape the future of Go! Take the 2026 Go Developer Survey

temporalclient

package
v1.321.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package temporalclient provides functions to create and manage Temporal clients. It includes utilities for connecting to Temporal servers with default or custom namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTestClients

func ClearTestClients()

ClearTestClients clears the test cache.

func ConfigureLogger

func ConfigureLogger(l tlog.Logger)

ConfigureLogger sets the logger used by Temporal clients created after the call.

func GetTemporalClientWithNamespace

func GetTemporalClientWithNamespace(namespace string) (client.Client, error)

GetTemporalClientWithNamespace returns the shared cached Temporal client for the namespace. Callers must not close the returned client; its lifecycle is managed by this package and ShutdownClients.

func NewNamespaceClient

func NewNamespaceClient() (client.NamespaceClient, error)

NewNamespaceClient returns a new Temporal namespace client for TEMPORAL_ADDRESS. Callers own the returned client and must close it.

func SetClientForTests

func SetClientForTests(namespace string, c client.Client)

SetClientForTests injects a client into the cache for unit tests.

func ShutdownClients

func ShutdownClients()

Types

This section is empty.

Jump to

Keyboard shortcuts

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