Documentation ¶
Overview ¶
Package history is a generated GoMock package.
Index ¶
- Constants
- func DecodeClusterShardMD(getter headers.HeaderGetter) (client ClusterShardID, server ClusterShardID, err error)
- func EncodeClusterShardMD(sourceClusterShardID ClusterShardID, targetClusterShardID ClusterShardID) metadata.MD
- func NewClient(dc *dynamicconfig.Collection, ...) historyservice.HistoryServiceClient
- func NewMetricClient(client historyservice.HistoryServiceClient, metricsHandler metrics.Handler, ...) historyservice.HistoryServiceClient
- func NewRetryableClient(client historyservice.HistoryServiceClient, policy backoff.RetryPolicy, ...) historyservice.HistoryServiceClient
- type ClusterShardID
- type MockRPCFactory
- type MockRPCFactoryMockRecorder
- type MockconnectionPool
- type MockconnectionPoolMockRecorder
- type RPCFactory
Constants ¶
const ( MetadataKeyClientClusterID = "temporal-client-cluster-id" MetadataKeyClientShardID = "temporal-client-shard-id" MetadataKeyServerClusterID = "temporal-server-cluster-id" MetadataKeyServerShardID = "temporal-server-shard-id" )
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( getter headers.HeaderGetter, ) (client ClusterShardID, server ClusterShardID, err 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 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 MockRPCFactory ¶ added in v1.23.0
type MockRPCFactory struct {
// contains filtered or unexported fields
}
MockRPCFactory is a mock of RPCFactory interface.
func NewMockRPCFactory ¶ added in v1.23.0
func NewMockRPCFactory(ctrl *gomock.Controller) *MockRPCFactory
NewMockRPCFactory creates a new mock instance.
func (*MockRPCFactory) CreateInternodeGRPCConnection ¶ added in v1.23.0
func (m *MockRPCFactory) CreateInternodeGRPCConnection(rpcAddress string) *grpc.ClientConn
CreateInternodeGRPCConnection mocks base method.
func (*MockRPCFactory) EXPECT ¶ added in v1.23.0
func (m *MockRPCFactory) EXPECT() *MockRPCFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRPCFactoryMockRecorder ¶ added in v1.23.0
type MockRPCFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCFactoryMockRecorder is the mock recorder for MockRPCFactory.
func (*MockRPCFactoryMockRecorder) CreateInternodeGRPCConnection ¶ added in v1.23.0
func (mr *MockRPCFactoryMockRecorder) CreateInternodeGRPCConnection(rpcAddress interface{}) *gomock.Call
CreateInternodeGRPCConnection indicates an expected call of CreateInternodeGRPCConnection.
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
func (m *MockconnectionPool) EXPECT() *MockconnectionPoolMockRecorder
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.
type RPCFactory ¶ added in v1.23.0
type RPCFactory interface {
CreateInternodeGRPCConnection(rpcAddress string) *grpc.ClientConn
}
RPCFactory is a subset of the go.temporal.io/server/common/rpc.RPCFactory interface to make testing easier.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package historytest contains library test functions for [history.NewClient] that use ahistory task queue manager.
|
Package historytest contains library test functions for [history.NewClient] that use ahistory task queue manager. |