temporal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package temporal provides Temporal client integration utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewClient

func MustNewClient(cfg ClientConfig) client.Client

MustNewClient creates a new Temporal client and panics on error.

func NewClient

func NewClient(cfg ClientConfig) (client.Client, error)

NewClient creates a new Temporal client with the given configuration.

Types

type ClientConfig

type ClientConfig struct {
	HostPort  string
	Namespace string
	Identity  string
}

ClientConfig holds configuration for the Temporal client.

func DefaultClientConfig

func DefaultClientConfig() ClientConfig

DefaultClientConfig returns a default Temporal client configuration.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory creates Temporal clients.

func NewClientFactory

func NewClientFactory(cfg ClientConfig) *ClientFactory

NewClientFactory creates a new ClientFactory.

func (*ClientFactory) Create

func (f *ClientFactory) Create() (client.Client, error)

Create creates a new Temporal client.

func (*ClientFactory) WithHostPort

func (f *ClientFactory) WithHostPort(hostPort string) *ClientFactory

WithHostPort returns a new ClientFactory with the specified host:port.

func (*ClientFactory) WithNamespace

func (f *ClientFactory) WithNamespace(namespace string) *ClientFactory

WithNamespace returns a new ClientFactory with the specified namespace.

Jump to

Keyboard shortcuts

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