history

package
v1.22.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package history is a generated GoMock package.

Index

Constants

View Source
const (
	MetadataKeyClientClusterID = "temporal-client-cluster-id"
	MetadataKeyClientShardID   = "temporal-client-shard-id"
	MetadataKeyServerClusterID = "temporal-server-cluster-id"
	MetadataKeyServerShardID   = "temporal-server-shard-id"
)
View Source
const (
	// DefaultTimeout is the default timeout used to make calls
	DefaultTimeout = time.Second * 30 * debug.TimeoutMultiplier
)

Variables

This section is empty.

Functions

func DecodeClusterShardMD added in v1.21.0

func DecodeClusterShardMD(
	clusterShardMD metadata.MD,
) (_ ClusterShardID, _ ClusterShardID, _ error)

func EncodeClusterShardMD added in v1.21.0

func EncodeClusterShardMD(
	sourceClusterShardID ClusterShardID,
	targetClusterShardID ClusterShardID,
) metadata.MD

func NewClient

func NewClient(
	dc *dynamicconfig.Collection,
	historyServiceResolver membership.ServiceResolver,
	logger log.Logger,
	numberOfShards int32,
	rpcFactory common.RPCFactory,
	timeout time.Duration,
) historyservice.HistoryServiceClient

NewClient creates a new history service gRPC client

func NewMetricClient

func NewMetricClient(
	client historyservice.HistoryServiceClient,
	metricsHandler metrics.Handler,
	logger log.Logger,
	throttledLogger log.Logger,
) historyservice.HistoryServiceClient

NewMetricClient creates a new instance of historyservice.HistoryServiceClient that emits metrics

func NewRetryableClient added in v0.3.14

func NewRetryableClient(client historyservice.HistoryServiceClient, policy backoff.RetryPolicy, isRetryable backoff.IsRetryable) historyservice.HistoryServiceClient

NewRetryableClient creates a new instance of historyservice.HistoryServiceClient with retry policy

Types

type ClusterShardID added in v1.21.0

type ClusterShardID struct {
	ClusterID int32
	ShardID   int32
}

type MockconnectionPool added in v1.21.5

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

MockconnectionPool is a mock of connectionPool interface.

func NewMockconnectionPool added in v1.21.5

func NewMockconnectionPool(ctrl *gomock.Controller) *MockconnectionPool

NewMockconnectionPool creates a new mock instance.

func (*MockconnectionPool) EXPECT added in v1.21.5

EXPECT returns an object that allows the caller to indicate expected use.

type MockconnectionPoolMockRecorder added in v1.21.5

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

MockconnectionPoolMockRecorder is the mock recorder for MockconnectionPool.

Jump to

Keyboard shortcuts

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