frontend

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTimeout is the default timeout used to make calls
	DefaultTimeout = 10 * time.Second * debug.TimeoutMultiplier
	// DefaultLongPollTimeout is the long poll default timeout used to make calls
	DefaultLongPollTimeout = time.Minute * 3 * debug.TimeoutMultiplier
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(
	timeout time.Duration,
	longPollTimeout time.Duration,
	client workflowservice.WorkflowServiceClient,
) workflowservice.WorkflowServiceClient

NewClient creates a new frontend service gRPC client

func NewMetricClient added in v0.5.0

func NewMetricClient(
	client workflowservice.WorkflowServiceClient,
	metricsHandler metrics.Handler,
	throttledLogger log.Logger,
) workflowservice.WorkflowServiceClient

NewMetricClient creates a new instance of workflowservice.WorkflowServiceClient that emits metrics

func NewRetryableClient added in v0.5.0

func NewRetryableClient(client workflowservice.WorkflowServiceClient, policy backoff.RetryPolicy, isRetryable backoff.IsRetryable) workflowservice.WorkflowServiceClient

NewRetryableClient creates a new instance of workflowservice.WorkflowServiceClient with retry policy

Types

This section is empty.

Jump to

Keyboard shortcuts

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