frontend

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

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

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,
	metricsClient metrics.Client,
	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