temporal

package
v0.0.0-...-d96e350 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "clutch.service.temporal"

Variables

This section is empty.

Functions

func New

func New(cfg *anypb.Any, logger *zap.Logger, scope tally.Scope) (service.Service, error)

Types

type Client

type Client interface {
	// GetConnection will connect to the server in order to check its capabilities on the first call.
	// Subsequent calls to GetConnection will return a cached client.
	GetConnection() (temporalclient.Client, error)
}

Client exists to protect users from creating a connection during instantiation of a component, since Temporal's NewClient function has the side effect of connecting to the server. See https://github.com/temporalio/sdk-go/issues/753 for more details.

type ClientManager

type ClientManager interface {
	GetNamespaceClient(namespace string) (Client, error)
}

Jump to

Keyboard shortcuts

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