Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- func NewMockMessagingClient(publisher messaging.Producer, consumer messaging.Consumer) messaging.Client
- type ClusterMetadata
- func (_m *ClusterMetadata) ClusterNameForFailoverVersion(failoverVersion int64) string
- func (_m *ClusterMetadata) GetAllClusterInfo() map[string]config.ClusterInformation
- func (_m *ClusterMetadata) GetCurrentClusterName() string
- func (_m *ClusterMetadata) GetDeploymentGroup() string
- func (_m *ClusterMetadata) GetMasterClusterName() string
- func (_m *ClusterMetadata) GetNextFailoverVersion(_a0 string, _a1 int64) int64
- func (_m *ClusterMetadata) GetReplicationConsumerConfig() *config.ReplicationConsumerConfig
- func (_m *ClusterMetadata) IsGlobalNamespaceEnabled() bool
- func (_m *ClusterMetadata) IsMasterCluster() bool
- func (_m *ClusterMetadata) IsVersionFromSameCluster(_a0 int64, _a1 int64) bool
- type ExecutionManager
- func (_m *ExecutionManager) Close()
- func (_m *ExecutionManager) CompleteReplicationTask(request *persistence.CompleteReplicationTaskRequest) error
- func (_m *ExecutionManager) CompleteTimerTask(request *persistence.CompleteTimerTaskRequest) error
- func (_m *ExecutionManager) CompleteTransferTask(request *persistence.CompleteTransferTaskRequest) error
- func (_m *ExecutionManager) ConflictResolveWorkflowExecution(request *persistence.ConflictResolveWorkflowExecutionRequest) error
- func (_m *ExecutionManager) CreateWorkflowExecution(request *persistence.CreateWorkflowExecutionRequest) (*persistence.CreateWorkflowExecutionResponse, error)
- func (_m *ExecutionManager) DeleteCurrentWorkflowExecution(request *persistence.DeleteCurrentWorkflowExecutionRequest) error
- func (_m *ExecutionManager) DeleteReplicationTaskFromDLQ(request *persistence.DeleteReplicationTaskFromDLQRequest) error
- func (_m *ExecutionManager) DeleteWorkflowExecution(request *persistence.DeleteWorkflowExecutionRequest) error
- func (_m *ExecutionManager) GetCurrentExecution(request *persistence.GetCurrentExecutionRequest) (*persistence.GetCurrentExecutionResponse, error)
- func (_m *ExecutionManager) GetName() string
- func (_m *ExecutionManager) GetReplicationTask(request *persistence.GetReplicationTaskRequest) (*persistence.GetReplicationTaskResponse, error)
- func (_m *ExecutionManager) GetReplicationTasks(request *persistence.GetReplicationTasksRequest) (*persistence.GetReplicationTasksResponse, error)
- func (_m *ExecutionManager) GetReplicationTasksFromDLQ(request *persistence.GetReplicationTasksFromDLQRequest) (*persistence.GetReplicationTasksFromDLQResponse, error)
- func (_m *ExecutionManager) GetShardID() int
- func (_m *ExecutionManager) GetTimerIndexTasks(request *persistence.GetTimerIndexTasksRequest) (*persistence.GetTimerIndexTasksResponse, error)
- func (_m *ExecutionManager) GetTimerTask(request *persistence.GetTimerTaskRequest) (*persistence.GetTimerTaskResponse, error)
- func (_m *ExecutionManager) GetTransferTask(request *persistence.GetTransferTaskRequest) (*persistence.GetTransferTaskResponse, error)
- func (_m *ExecutionManager) GetTransferTasks(request *persistence.GetTransferTasksRequest) (*persistence.GetTransferTasksResponse, error)
- func (_m *ExecutionManager) GetWorkflowExecution(request *persistence.GetWorkflowExecutionRequest) (*persistence.GetWorkflowExecutionResponse, error)
- func (_m *ExecutionManager) ListConcreteExecutions(request *persistence.ListConcreteExecutionsRequest) (*persistence.ListConcreteExecutionsResponse, error)
- func (_m *ExecutionManager) PutReplicationTaskToDLQ(request *persistence.PutReplicationTaskToDLQRequest) error
- func (_m *ExecutionManager) RangeCompleteReplicationTask(request *persistence.RangeCompleteReplicationTaskRequest) error
- func (_m *ExecutionManager) RangeCompleteTimerTask(request *persistence.RangeCompleteTimerTaskRequest) error
- func (_m *ExecutionManager) RangeCompleteTransferTask(request *persistence.RangeCompleteTransferTaskRequest) error
- func (_m *ExecutionManager) RangeDeleteReplicationTaskFromDLQ(request *persistence.RangeDeleteReplicationTaskFromDLQRequest) error
- func (_m *ExecutionManager) ResetWorkflowExecution(request *persistence.ResetWorkflowExecutionRequest) error
- func (_m *ExecutionManager) UpdateWorkflowExecution(request *persistence.UpdateWorkflowExecutionRequest) (*persistence.UpdateWorkflowExecutionResponse, error)
- type ExecutionManagerFactory
- type HistoryV2Manager
- func (_m *HistoryV2Manager) AppendHistoryNodes(request *persistence.AppendHistoryNodesRequest) (*persistence.AppendHistoryNodesResponse, error)
- func (_m *HistoryV2Manager) Close()
- func (_m *HistoryV2Manager) CompleteForkBranch(request *persistence.CompleteForkBranchRequest) error
- func (_m *HistoryV2Manager) DeleteHistoryBranch(request *persistence.DeleteHistoryBranchRequest) error
- func (_m *HistoryV2Manager) ForkHistoryBranch(request *persistence.ForkHistoryBranchRequest) (*persistence.ForkHistoryBranchResponse, error)
- func (_m *HistoryV2Manager) GetAllHistoryTreeBranches(request *persistence.GetAllHistoryTreeBranchesRequest) (*persistence.GetAllHistoryTreeBranchesResponse, error)
- func (_m *HistoryV2Manager) GetHistoryTree(request *persistence.GetHistoryTreeRequest) (*persistence.GetHistoryTreeResponse, error)
- func (_m *HistoryV2Manager) GetName() string
- func (_m *HistoryV2Manager) ReadHistoryBranch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadHistoryBranchResponse, error)
- func (_m *HistoryV2Manager) ReadHistoryBranchByBatch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadHistoryBranchByBatchResponse, error)
- func (_m *HistoryV2Manager) ReadRawHistoryBranch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadRawHistoryBranchResponse, error)
- type KafkaProducer
- type MessagingClient
- func (c *MessagingClient) NewConsumer(appName, consumerName string, concurrency int) (messaging.Consumer, error)
- func (c *MessagingClient) NewConsumerWithClusterName(currentCluster, sourceCluster, consumerName string, concurrency int) (messaging.Consumer, error)
- func (c *MessagingClient) NewProducer(appName string) (messaging.Producer, error)
- func (c *MessagingClient) NewProducerWithClusterName(sourceCluster string) (messaging.Producer, error)
- type MetadataManager
- func (_m *MetadataManager) Close()
- func (_m *MetadataManager) CreateNamespace(request *persistence.CreateNamespaceRequest) (*persistence.CreateNamespaceResponse, error)
- func (_m *MetadataManager) DeleteNamespace(request *persistence.DeleteNamespaceRequest) error
- func (_m *MetadataManager) DeleteNamespaceByName(request *persistence.DeleteNamespaceByNameRequest) error
- func (_m *MetadataManager) GetMetadata() (*persistence.GetMetadataResponse, error)
- func (_m *MetadataManager) GetName() string
- func (_m *MetadataManager) GetNamespace(request *persistence.GetNamespaceRequest) (*persistence.GetNamespaceResponse, error)
- func (_m *MetadataManager) InitializeSystemNamespaces(currentClusterName string) error
- func (_m *MetadataManager) ListNamespaces(request *persistence.ListNamespacesRequest) (*persistence.ListNamespacesResponse, error)
- func (_m *MetadataManager) UpdateNamespace(request *persistence.UpdateNamespaceRequest) error
- type MockCloseable
- type MockCloseableMockRecorder
- type MockClusterMetadataManager
- func (m *MockClusterMetadataManager) Close()
- func (m *MockClusterMetadataManager) EXPECT() *MockClusterMetadataManagerMockRecorder
- func (m *MockClusterMetadataManager) GetClusterMembers(request *persistence.GetClusterMembersRequest) (*persistence.GetClusterMembersResponse, error)
- func (m *MockClusterMetadataManager) GetImmutableClusterMetadata() (*persistence.GetImmutableClusterMetadataResponse, error)
- func (m *MockClusterMetadataManager) GetName() string
- func (m *MockClusterMetadataManager) InitializeImmutableClusterMetadata(request *persistence.InitializeImmutableClusterMetadataRequest) (*persistence.InitializeImmutableClusterMetadataResponse, error)
- func (m *MockClusterMetadataManager) PruneClusterMembership(request *persistence.PruneClusterMembershipRequest) error
- func (m *MockClusterMetadataManager) UpsertClusterMembership(request *persistence.UpsertClusterMembershipRequest) error
- type MockClusterMetadataManagerMockRecorder
- func (mr *MockClusterMetadataManagerMockRecorder) Close() *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) GetClusterMembers(request interface{}) *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) GetImmutableClusterMetadata() *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) InitializeImmutableClusterMetadata(request interface{}) *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) PruneClusterMembership(request interface{}) *gomock.Call
- func (mr *MockClusterMetadataManagerMockRecorder) UpsertClusterMembership(request interface{}) *gomock.Call
- type ShardManager
- func (_m *ShardManager) Close()
- func (_m *ShardManager) CreateShard(request *persistence.CreateShardRequest) error
- func (_m *ShardManager) GetName() string
- func (_m *ShardManager) GetShard(request *persistence.GetShardRequest) (*persistence.GetShardResponse, error)
- func (_m *ShardManager) UpdateShard(request *persistence.UpdateShardRequest) error
- type TaskManager
- func (_m *TaskManager) Close()
- func (_m *TaskManager) CompleteTask(request *persistence.CompleteTaskRequest) error
- func (_m *TaskManager) CompleteTasksLessThan(request *persistence.CompleteTasksLessThanRequest) (int, error)
- func (_m *TaskManager) CreateTasks(request *persistence.CreateTasksRequest) (*persistence.CreateTasksResponse, error)
- func (_m *TaskManager) DeleteTaskQueue(request *persistence.DeleteTaskQueueRequest) error
- func (_m *TaskManager) GetName() string
- func (_m *TaskManager) GetTasks(request *persistence.GetTasksRequest) (*persistence.GetTasksResponse, error)
- func (_m *TaskManager) LeaseTaskQueue(request *persistence.LeaseTaskQueueRequest) (*persistence.LeaseTaskQueueResponse, error)
- func (_m *TaskManager) ListTaskQueue(request *persistence.ListTaskQueueRequest) (*persistence.ListTaskQueueResponse, error)
- func (_m *TaskManager) UpdateTaskQueue(request *persistence.UpdateTaskQueueRequest) (*persistence.UpdateTaskQueueResponse, error)
- type VisibilityManager
- func (_m *VisibilityManager) Close()
- func (_m *VisibilityManager) CountWorkflowExecutions(request *persistence.CountWorkflowExecutionsRequest) (*persistence.CountWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) DeleteWorkflowExecution(request *persistence.VisibilityDeleteWorkflowExecutionRequest) error
- func (_m *VisibilityManager) GetClosedWorkflowExecution(request *persistence.GetClosedWorkflowExecutionRequest) (*persistence.GetClosedWorkflowExecutionResponse, error)
- func (_m *VisibilityManager) GetName() string
- func (_m *VisibilityManager) ListClosedWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListClosedWorkflowExecutionsByStatus(request *persistence.ListClosedWorkflowExecutionsByStatusRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListClosedWorkflowExecutionsByType(request *persistence.ListWorkflowExecutionsByTypeRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListClosedWorkflowExecutionsByWorkflowID(request *persistence.ListWorkflowExecutionsByWorkflowIDRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListOpenWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListOpenWorkflowExecutionsByType(request *persistence.ListWorkflowExecutionsByTypeRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListOpenWorkflowExecutionsByWorkflowID(request *persistence.ListWorkflowExecutionsByWorkflowIDRequest) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) ListWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequestV2) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) RecordWorkflowExecutionClosed(request *persistence.RecordWorkflowExecutionClosedRequest) error
- func (_m *VisibilityManager) RecordWorkflowExecutionStarted(request *persistence.RecordWorkflowExecutionStartedRequest) error
- func (_m *VisibilityManager) ScanWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequestV2) (*persistence.ListWorkflowExecutionsResponse, error)
- func (_m *VisibilityManager) UpsertWorkflowExecution(request *persistence.UpsertWorkflowExecutionRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterMetadata ¶ added in v0.3.11
ClusterMetadata is an autogenerated mock type for the Metadata type
func (*ClusterMetadata) ClusterNameForFailoverVersion ¶ added in v0.3.11
func (_m *ClusterMetadata) ClusterNameForFailoverVersion(failoverVersion int64) string
ClusterNameForFailoverVersion provides a mock function with given fields:
func (*ClusterMetadata) GetAllClusterInfo ¶ added in v0.5.8
func (_m *ClusterMetadata) GetAllClusterInfo() map[string]config.ClusterInformation
GetAllClusterInfo provides a mock function with given fields:
func (*ClusterMetadata) GetCurrentClusterName ¶ added in v0.3.11
func (_m *ClusterMetadata) GetCurrentClusterName() string
GetCurrentClusterName provides a mock function with given fields:
func (*ClusterMetadata) GetDeploymentGroup ¶ added in v0.5.0
func (_m *ClusterMetadata) GetDeploymentGroup() string
GetDeploymentGroup provides a mock function with given fields:
func (*ClusterMetadata) GetMasterClusterName ¶ added in v0.3.11
func (_m *ClusterMetadata) GetMasterClusterName() string
GetMasterClusterName provides a mock function with given fields:
func (*ClusterMetadata) GetNextFailoverVersion ¶ added in v0.3.11
func (_m *ClusterMetadata) GetNextFailoverVersion(_a0 string, _a1 int64) int64
GetNextFailoverVersion provides a mock function with given fields: _a0, _a1
func (*ClusterMetadata) GetReplicationConsumerConfig ¶ added in v0.27.0
func (_m *ClusterMetadata) GetReplicationConsumerConfig() *config.ReplicationConsumerConfig
GetReplicationConsumerConfig provides a mock function with given fields:
func (*ClusterMetadata) IsGlobalNamespaceEnabled ¶ added in v0.27.0
func (_m *ClusterMetadata) IsGlobalNamespaceEnabled() bool
IsGlobalNamespaceEnabled provides a mock function with given fields:
func (*ClusterMetadata) IsMasterCluster ¶ added in v0.3.11
func (_m *ClusterMetadata) IsMasterCluster() bool
IsMasterCluster provides a mock function with given fields:
func (*ClusterMetadata) IsVersionFromSameCluster ¶ added in v0.3.14
func (_m *ClusterMetadata) IsVersionFromSameCluster(_a0 int64, _a1 int64) bool
IsVersionFromSameCluster provides a mock function with given fields: _a0, _a1
type ExecutionManager ¶
ExecutionManager mock implementation
func (*ExecutionManager) Close ¶
func (_m *ExecutionManager) Close()
Close provides a mock function with given fields:
func (*ExecutionManager) CompleteReplicationTask ¶ added in v0.3.11
func (_m *ExecutionManager) CompleteReplicationTask(request *persistence.CompleteReplicationTaskRequest) error
CompleteReplicationTask provides a mock function with given fields: request
func (*ExecutionManager) CompleteTimerTask ¶
func (_m *ExecutionManager) CompleteTimerTask(request *persistence.CompleteTimerTaskRequest) error
CompleteTimerTask provides a mock function with given fields: request
func (*ExecutionManager) CompleteTransferTask ¶
func (_m *ExecutionManager) CompleteTransferTask(request *persistence.CompleteTransferTaskRequest) error
CompleteTransferTask provides a mock function with given fields: request
func (*ExecutionManager) ConflictResolveWorkflowExecution ¶ added in v0.7.0
func (_m *ExecutionManager) ConflictResolveWorkflowExecution(request *persistence.ConflictResolveWorkflowExecutionRequest) error
ConflictResolveWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) CreateWorkflowExecution ¶
func (_m *ExecutionManager) CreateWorkflowExecution(request *persistence.CreateWorkflowExecutionRequest) (*persistence.CreateWorkflowExecutionResponse, error)
CreateWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) DeleteCurrentWorkflowExecution ¶ added in v0.5.8
func (_m *ExecutionManager) DeleteCurrentWorkflowExecution(request *persistence.DeleteCurrentWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) DeleteReplicationTaskFromDLQ ¶ added in v0.27.0
func (_m *ExecutionManager) DeleteReplicationTaskFromDLQ( request *persistence.DeleteReplicationTaskFromDLQRequest, ) error
DeleteReplicationTaskFromDLQ provides a mock function with given fields: request
func (*ExecutionManager) DeleteWorkflowExecution ¶
func (_m *ExecutionManager) DeleteWorkflowExecution(request *persistence.DeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) GetCurrentExecution ¶
func (_m *ExecutionManager) GetCurrentExecution(request *persistence.GetCurrentExecutionRequest) (*persistence.GetCurrentExecutionResponse, error)
GetCurrentExecution provides a mock function with given fields: request
func (*ExecutionManager) GetName ¶ added in v0.4.0
func (_m *ExecutionManager) GetName() string
GetName provides a mock function with given fields:
func (*ExecutionManager) GetReplicationTask ¶ added in v0.27.0
func (_m *ExecutionManager) GetReplicationTask(request *persistence.GetReplicationTaskRequest) (*persistence.GetReplicationTaskResponse, error)
GetReplicationTask provides a mock function with given fields: request
func (*ExecutionManager) GetReplicationTasks ¶ added in v0.3.11
func (_m *ExecutionManager) GetReplicationTasks(request *persistence.GetReplicationTasksRequest) (*persistence.GetReplicationTasksResponse, error)
GetReplicationTasks provides a mock function with given fields: request
func (*ExecutionManager) GetReplicationTasksFromDLQ ¶ added in v0.27.0
func (_m *ExecutionManager) GetReplicationTasksFromDLQ(request *persistence.GetReplicationTasksFromDLQRequest) (*persistence.GetReplicationTasksFromDLQResponse, error)
GetReplicationTasksFromDLQ provides a mock function with given fields: request
func (*ExecutionManager) GetShardID ¶ added in v0.5.0
func (_m *ExecutionManager) GetShardID() int
GetShardID provides a mock function with given fields:
func (*ExecutionManager) GetTimerIndexTasks ¶
func (_m *ExecutionManager) GetTimerIndexTasks(request *persistence.GetTimerIndexTasksRequest) (*persistence.GetTimerIndexTasksResponse, error)
GetTimerIndexTasks provides a mock function with given fields: request
func (*ExecutionManager) GetTimerTask ¶ added in v0.27.0
func (_m *ExecutionManager) GetTimerTask(request *persistence.GetTimerTaskRequest) (*persistence.GetTimerTaskResponse, error)
GetTimerTask provides a mock function with given fields: request
func (*ExecutionManager) GetTransferTask ¶ added in v0.27.0
func (_m *ExecutionManager) GetTransferTask(request *persistence.GetTransferTaskRequest) (*persistence.GetTransferTaskResponse, error)
GetTransferTask provides a mock function with given fields: request
func (*ExecutionManager) GetTransferTasks ¶
func (_m *ExecutionManager) GetTransferTasks(request *persistence.GetTransferTasksRequest) (*persistence.GetTransferTasksResponse, error)
GetTransferTasks provides a mock function with given fields: request
func (*ExecutionManager) GetWorkflowExecution ¶
func (_m *ExecutionManager) GetWorkflowExecution(request *persistence.GetWorkflowExecutionRequest) (*persistence.GetWorkflowExecutionResponse, error)
GetWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) ListConcreteExecutions ¶ added in v0.27.0
func (_m *ExecutionManager) ListConcreteExecutions(request *persistence.ListConcreteExecutionsRequest) (*persistence.ListConcreteExecutionsResponse, error)
ListConcreteExecutions provides a mock function with given fields: request
func (*ExecutionManager) PutReplicationTaskToDLQ ¶ added in v0.27.0
func (_m *ExecutionManager) PutReplicationTaskToDLQ(request *persistence.PutReplicationTaskToDLQRequest) error
PutReplicationTaskToDLQ provides a mock function with given fields: request
func (*ExecutionManager) RangeCompleteReplicationTask ¶ added in v0.27.0
func (_m *ExecutionManager) RangeCompleteReplicationTask(request *persistence.RangeCompleteReplicationTaskRequest) error
RangeCompleteReplicationTask provides a mock function with given fields: request
func (*ExecutionManager) RangeCompleteTimerTask ¶ added in v0.4.0
func (_m *ExecutionManager) RangeCompleteTimerTask(request *persistence.RangeCompleteTimerTaskRequest) error
RangeCompleteTimerTask provides a mock function with given fields: request
func (*ExecutionManager) RangeCompleteTransferTask ¶ added in v0.4.0
func (_m *ExecutionManager) RangeCompleteTransferTask(request *persistence.RangeCompleteTransferTaskRequest) error
RangeCompleteTransferTask provides a mock function with given fields: request
func (*ExecutionManager) RangeDeleteReplicationTaskFromDLQ ¶ added in v0.27.0
func (_m *ExecutionManager) RangeDeleteReplicationTaskFromDLQ( request *persistence.RangeDeleteReplicationTaskFromDLQRequest, ) error
RangeDeleteReplicationTaskFromDLQ provides a mock function with given fields: request
func (*ExecutionManager) ResetWorkflowExecution ¶ added in v0.5.2
func (_m *ExecutionManager) ResetWorkflowExecution(request *persistence.ResetWorkflowExecutionRequest) error
ResetWorkflowExecution provides a mock function with given fields: request
func (*ExecutionManager) UpdateWorkflowExecution ¶
func (_m *ExecutionManager) UpdateWorkflowExecution(request *persistence.UpdateWorkflowExecutionRequest) (*persistence.UpdateWorkflowExecutionResponse, error)
UpdateWorkflowExecution provides a mock function with given fields: request
type ExecutionManagerFactory ¶
ExecutionManagerFactory is an autogenerated mock type for the ExecutionManagerFactory type
func (*ExecutionManagerFactory) Close ¶ added in v0.3.2
func (_m *ExecutionManagerFactory) Close()
Close is mock implementation for Close of ExecutionManagerFactory
func (*ExecutionManagerFactory) NewExecutionManager ¶ added in v0.4.0
func (_m *ExecutionManagerFactory) NewExecutionManager(shardID int) (persistence.ExecutionManager, error)
NewExecutionManager provides a mock function with given fields: shardID
type HistoryV2Manager ¶ added in v0.5.0
HistoryManager mock implementation
func (*HistoryV2Manager) AppendHistoryNodes ¶ added in v0.5.0
func (_m *HistoryV2Manager) AppendHistoryNodes(request *persistence.AppendHistoryNodesRequest) (*persistence.AppendHistoryNodesResponse, error)
AppendHistoryNodes provides a mock function with given fields: request
func (*HistoryV2Manager) Close ¶ added in v0.5.0
func (_m *HistoryV2Manager) Close()
Close provides a mock function with given fields:
func (*HistoryV2Manager) CompleteForkBranch ¶ added in v0.5.2
func (_m *HistoryV2Manager) CompleteForkBranch(request *persistence.CompleteForkBranchRequest) error
CompleteForkBranch provides a mock function with given fields: request
func (*HistoryV2Manager) DeleteHistoryBranch ¶ added in v0.5.0
func (_m *HistoryV2Manager) DeleteHistoryBranch(request *persistence.DeleteHistoryBranchRequest) error
DeleteHistoryBranch provides a mock function with given fields: request
func (*HistoryV2Manager) ForkHistoryBranch ¶ added in v0.5.0
func (_m *HistoryV2Manager) ForkHistoryBranch(request *persistence.ForkHistoryBranchRequest) (*persistence.ForkHistoryBranchResponse, error)
ForkHistoryBranch provides a mock function with given fields: request
func (*HistoryV2Manager) GetAllHistoryTreeBranches ¶ added in v0.27.0
func (_m *HistoryV2Manager) GetAllHistoryTreeBranches(request *persistence.GetAllHistoryTreeBranchesRequest) (*persistence.GetAllHistoryTreeBranchesResponse, error)
func (*HistoryV2Manager) GetHistoryTree ¶ added in v0.5.0
func (_m *HistoryV2Manager) GetHistoryTree(request *persistence.GetHistoryTreeRequest) (*persistence.GetHistoryTreeResponse, error)
GetHistoryTree provides a mock function with given fields: request
func (*HistoryV2Manager) GetName ¶ added in v0.5.0
func (_m *HistoryV2Manager) GetName() string
GetName provides a mock function with given fields:
func (*HistoryV2Manager) ReadHistoryBranch ¶ added in v0.5.0
func (_m *HistoryV2Manager) ReadHistoryBranch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadHistoryBranchResponse, error)
ReadHistoryBranch provides a mock function with given fields: request
func (*HistoryV2Manager) ReadHistoryBranchByBatch ¶ added in v0.5.0
func (_m *HistoryV2Manager) ReadHistoryBranchByBatch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadHistoryBranchByBatchResponse, error)
ReadHistoryBranchByBatch provides a mock function with given fields: request
func (*HistoryV2Manager) ReadRawHistoryBranch ¶ added in v0.27.0
func (_m *HistoryV2Manager) ReadRawHistoryBranch(request *persistence.ReadHistoryBranchRequest) (*persistence.ReadRawHistoryBranchResponse, error)
ReadRawHistoryBranch provides a mock function with given fields: request
type KafkaProducer ¶ added in v0.3.7
KafkaProducer is an autogenerated mock type for the KafkaProducer type
func (*KafkaProducer) Close ¶ added in v0.3.7
func (_m *KafkaProducer) Close() error
Close provides a mock function with given fields:
func (*KafkaProducer) Publish ¶ added in v0.3.7
func (_m *KafkaProducer) Publish(msg interface{}) error
Publish provides a mock function with given fields: msg
type MessagingClient ¶ added in v0.3.11
type MessagingClient struct {
// contains filtered or unexported fields
}
MessagingClient is the mock implementation for Service interface
func (*MessagingClient) NewConsumer ¶ added in v0.3.11
func (c *MessagingClient) NewConsumer(appName, consumerName string, concurrency int) (messaging.Consumer, error)
NewConsumer generates a dummy implementation of kafka consumer
func (*MessagingClient) NewConsumerWithClusterName ¶ added in v0.5.2
func (c *MessagingClient) NewConsumerWithClusterName(currentCluster, sourceCluster, consumerName string, concurrency int) (messaging.Consumer, error)
NewConsumerWithClusterName generates a dummy implementation of kafka consumer
func (*MessagingClient) NewProducer ¶ added in v0.3.11
func (c *MessagingClient) NewProducer(appName string) (messaging.Producer, error)
NewProducer generates a dummy implementation of kafka producer
func (*MessagingClient) NewProducerWithClusterName ¶ added in v0.5.0
func (c *MessagingClient) NewProducerWithClusterName(sourceCluster string) (messaging.Producer, error)
NewProducerWithClusterName generates a dummy implementation of kafka producer
type MetadataManager ¶
MetadataManager is an autogenerated mock type for the MetadataManager type
func (*MetadataManager) Close ¶
func (_m *MetadataManager) Close()
Close provides a mock function with given fields:
func (*MetadataManager) CreateNamespace ¶ added in v0.27.0
func (_m *MetadataManager) CreateNamespace(request *persistence.CreateNamespaceRequest) (*persistence.CreateNamespaceResponse, error)
CreateNamespace provides a mock function with given fields: request
func (*MetadataManager) DeleteNamespace ¶ added in v0.27.0
func (_m *MetadataManager) DeleteNamespace(request *persistence.DeleteNamespaceRequest) error
DeleteNamespace provides a mock function with given fields: request
func (*MetadataManager) DeleteNamespaceByName ¶ added in v0.27.0
func (_m *MetadataManager) DeleteNamespaceByName(request *persistence.DeleteNamespaceByNameRequest) error
DeleteNamespaceByName provides a mock function with given fields: request
func (*MetadataManager) GetMetadata ¶ added in v0.3.13
func (_m *MetadataManager) GetMetadata() (*persistence.GetMetadataResponse, error)
GetMetadata provides a mock function with given fields: request
func (*MetadataManager) GetName ¶ added in v0.4.0
func (_m *MetadataManager) GetName() string
GetName provides a mock function with given fields:
func (*MetadataManager) GetNamespace ¶ added in v0.27.0
func (_m *MetadataManager) GetNamespace(request *persistence.GetNamespaceRequest) (*persistence.GetNamespaceResponse, error)
GetNamespace provides a mock function with given fields: request
func (*MetadataManager) InitializeSystemNamespaces ¶ added in v0.27.0
func (_m *MetadataManager) InitializeSystemNamespaces(currentClusterName string) error
func (*MetadataManager) ListNamespaces ¶ added in v0.27.0
func (_m *MetadataManager) ListNamespaces(request *persistence.ListNamespacesRequest) (*persistence.ListNamespacesResponse, error)
ListNamespaces provides a mock function with given fields: request
func (*MetadataManager) UpdateNamespace ¶ added in v0.27.0
func (_m *MetadataManager) UpdateNamespace(request *persistence.UpdateNamespaceRequest) error
UpdateNamespace provides a mock function with given fields: request
type MockCloseable ¶ added in v0.27.0
type MockCloseable struct {
// contains filtered or unexported fields
}
MockCloseable is a mock of Closeable interface
func NewMockCloseable ¶ added in v0.27.0
func NewMockCloseable(ctrl *gomock.Controller) *MockCloseable
NewMockCloseable creates a new mock instance
func (*MockCloseable) Close ¶ added in v0.27.0
func (m *MockCloseable) Close()
Close mocks base method
func (*MockCloseable) EXPECT ¶ added in v0.27.0
func (m *MockCloseable) EXPECT() *MockCloseableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCloseableMockRecorder ¶ added in v0.27.0
type MockCloseableMockRecorder struct {
// contains filtered or unexported fields
}
MockCloseableMockRecorder is the mock recorder for MockCloseable
func (*MockCloseableMockRecorder) Close ¶ added in v0.27.0
func (mr *MockCloseableMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
type MockClusterMetadataManager ¶ added in v0.27.0
type MockClusterMetadataManager struct {
// contains filtered or unexported fields
}
MockClusterMetadataManager is a mock of ClusterMetadataManager interface
func NewMockClusterMetadataManager ¶ added in v0.27.0
func NewMockClusterMetadataManager(ctrl *gomock.Controller) *MockClusterMetadataManager
NewMockClusterMetadataManager creates a new mock instance
func (*MockClusterMetadataManager) Close ¶ added in v0.27.0
func (m *MockClusterMetadataManager) Close()
Close mocks base method
func (*MockClusterMetadataManager) EXPECT ¶ added in v0.27.0
func (m *MockClusterMetadataManager) EXPECT() *MockClusterMetadataManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClusterMetadataManager) GetClusterMembers ¶ added in v0.27.0
func (m *MockClusterMetadataManager) GetClusterMembers(request *persistence.GetClusterMembersRequest) (*persistence.GetClusterMembersResponse, error)
GetClusterMembers mocks base method
func (*MockClusterMetadataManager) GetImmutableClusterMetadata ¶ added in v0.27.0
func (m *MockClusterMetadataManager) GetImmutableClusterMetadata() (*persistence.GetImmutableClusterMetadataResponse, error)
GetImmutableClusterMetadata mocks base method
func (*MockClusterMetadataManager) GetName ¶ added in v0.27.0
func (m *MockClusterMetadataManager) GetName() string
GetName mocks base method
func (*MockClusterMetadataManager) InitializeImmutableClusterMetadata ¶ added in v0.27.0
func (m *MockClusterMetadataManager) InitializeImmutableClusterMetadata(request *persistence.InitializeImmutableClusterMetadataRequest) (*persistence.InitializeImmutableClusterMetadataResponse, error)
InitializeImmutableClusterMetadata mocks base method
func (*MockClusterMetadataManager) PruneClusterMembership ¶ added in v0.27.0
func (m *MockClusterMetadataManager) PruneClusterMembership(request *persistence.PruneClusterMembershipRequest) error
PruneClusterMembership mocks base method
func (*MockClusterMetadataManager) UpsertClusterMembership ¶ added in v0.27.0
func (m *MockClusterMetadataManager) UpsertClusterMembership(request *persistence.UpsertClusterMembershipRequest) error
UpsertClusterMembership mocks base method
type MockClusterMetadataManagerMockRecorder ¶ added in v0.27.0
type MockClusterMetadataManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterMetadataManagerMockRecorder is the mock recorder for MockClusterMetadataManager
func (*MockClusterMetadataManagerMockRecorder) Close ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClusterMetadataManagerMockRecorder) GetClusterMembers ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) GetClusterMembers(request interface{}) *gomock.Call
GetClusterMembers indicates an expected call of GetClusterMembers
func (*MockClusterMetadataManagerMockRecorder) GetImmutableClusterMetadata ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) GetImmutableClusterMetadata() *gomock.Call
GetImmutableClusterMetadata indicates an expected call of GetImmutableClusterMetadata
func (*MockClusterMetadataManagerMockRecorder) GetName ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName
func (*MockClusterMetadataManagerMockRecorder) InitializeImmutableClusterMetadata ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) InitializeImmutableClusterMetadata(request interface{}) *gomock.Call
InitializeImmutableClusterMetadata indicates an expected call of InitializeImmutableClusterMetadata
func (*MockClusterMetadataManagerMockRecorder) PruneClusterMembership ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) PruneClusterMembership(request interface{}) *gomock.Call
PruneClusterMembership indicates an expected call of PruneClusterMembership
func (*MockClusterMetadataManagerMockRecorder) UpsertClusterMembership ¶ added in v0.27.0
func (mr *MockClusterMetadataManagerMockRecorder) UpsertClusterMembership(request interface{}) *gomock.Call
UpsertClusterMembership indicates an expected call of UpsertClusterMembership
type ShardManager ¶
ShardManager is an autogenerated mock type for the ShardManager type
func (*ShardManager) Close ¶
func (_m *ShardManager) Close()
Close provides a mock function with given fields:
func (*ShardManager) CreateShard ¶
func (_m *ShardManager) CreateShard(request *persistence.CreateShardRequest) error
CreateShard provides a mock function with given fields: request
func (*ShardManager) GetName ¶ added in v0.4.0
func (_m *ShardManager) GetName() string
GetName provides a mock function with given fields:
func (*ShardManager) GetShard ¶
func (_m *ShardManager) GetShard(request *persistence.GetShardRequest) (*persistence.GetShardResponse, error)
GetShard provides a mock function with given fields: request
func (*ShardManager) UpdateShard ¶
func (_m *ShardManager) UpdateShard(request *persistence.UpdateShardRequest) error
UpdateShard provides a mock function with given fields: request
type TaskManager ¶
TaskManager is an autogenerated mock type for the TaskManager type
func (*TaskManager) Close ¶
func (_m *TaskManager) Close()
Close provides a mock function with given fields:
func (*TaskManager) CompleteTask ¶
func (_m *TaskManager) CompleteTask(request *persistence.CompleteTaskRequest) error
CompleteTask provides a mock function with given fields: request
func (*TaskManager) CompleteTasksLessThan ¶ added in v0.5.7
func (_m *TaskManager) CompleteTasksLessThan(request *persistence.CompleteTasksLessThanRequest) (int, error)
CompleteTasksLessThan
func (*TaskManager) CreateTasks ¶
func (_m *TaskManager) CreateTasks(request *persistence.CreateTasksRequest) (*persistence.CreateTasksResponse, error)
CreateTasks provides a mock function with given fields: request
func (*TaskManager) DeleteTaskQueue ¶ added in v0.27.0
func (_m *TaskManager) DeleteTaskQueue(request *persistence.DeleteTaskQueueRequest) error
func (*TaskManager) GetName ¶ added in v0.4.0
func (_m *TaskManager) GetName() string
GetName provides a mock function with given fields:
func (*TaskManager) GetTasks ¶
func (_m *TaskManager) GetTasks(request *persistence.GetTasksRequest) (*persistence.GetTasksResponse, error)
GetTasks provides a mock function with given fields: request
func (*TaskManager) LeaseTaskQueue ¶ added in v0.27.0
func (_m *TaskManager) LeaseTaskQueue(request *persistence.LeaseTaskQueueRequest) (*persistence.LeaseTaskQueueResponse, error)
LeaseTaskQueue provides a mock function with given fields: request
func (*TaskManager) ListTaskQueue ¶ added in v0.27.0
func (_m *TaskManager) ListTaskQueue(request *persistence.ListTaskQueueRequest) (*persistence.ListTaskQueueResponse, error)
func (*TaskManager) UpdateTaskQueue ¶ added in v0.27.0
func (_m *TaskManager) UpdateTaskQueue(request *persistence.UpdateTaskQueueRequest) (*persistence.UpdateTaskQueueResponse, error)
UpdateTaskQueue provides a mock function with given fields: request
type VisibilityManager ¶
VisibilityManager is an autogenerated mock type for the VisibilityManager type
func (*VisibilityManager) Close ¶
func (_m *VisibilityManager) Close()
Close provides a mock function with given fields:
func (*VisibilityManager) CountWorkflowExecutions ¶ added in v0.5.8
func (_m *VisibilityManager) CountWorkflowExecutions(request *persistence.CountWorkflowExecutionsRequest) (*persistence.CountWorkflowExecutionsResponse, error)
CountWorkflowExecutions provides a mock function with given fields: request
func (*VisibilityManager) DeleteWorkflowExecution ¶ added in v0.5.7
func (_m *VisibilityManager) DeleteWorkflowExecution(request *persistence.VisibilityDeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution provides a mock function with given fields: request
func (*VisibilityManager) GetClosedWorkflowExecution ¶
func (_m *VisibilityManager) GetClosedWorkflowExecution(request *persistence.GetClosedWorkflowExecutionRequest) (*persistence.GetClosedWorkflowExecutionResponse, error)
GetClosedWorkflowExecution provides a mock function with given fields: request
func (*VisibilityManager) GetName ¶ added in v0.4.0
func (_m *VisibilityManager) GetName() string
GetName provides a mock function with given fields:
func (*VisibilityManager) ListClosedWorkflowExecutions ¶
func (_m *VisibilityManager) ListClosedWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions provides a mock function with given fields: request
func (*VisibilityManager) ListClosedWorkflowExecutionsByStatus ¶
func (_m *VisibilityManager) ListClosedWorkflowExecutionsByStatus(request *persistence.ListClosedWorkflowExecutionsByStatusRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByStatus provides a mock function with given fields: request
func (*VisibilityManager) ListClosedWorkflowExecutionsByType ¶
func (_m *VisibilityManager) ListClosedWorkflowExecutionsByType(request *persistence.ListWorkflowExecutionsByTypeRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByType provides a mock function with given fields: request
func (*VisibilityManager) ListClosedWorkflowExecutionsByWorkflowID ¶
func (_m *VisibilityManager) ListClosedWorkflowExecutionsByWorkflowID(request *persistence.ListWorkflowExecutionsByWorkflowIDRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByWorkflowID provides a mock function with given fields: request
func (*VisibilityManager) ListOpenWorkflowExecutions ¶
func (_m *VisibilityManager) ListOpenWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutions provides a mock function with given fields: request
func (*VisibilityManager) ListOpenWorkflowExecutionsByType ¶
func (_m *VisibilityManager) ListOpenWorkflowExecutionsByType(request *persistence.ListWorkflowExecutionsByTypeRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByType provides a mock function with given fields: request
func (*VisibilityManager) ListOpenWorkflowExecutionsByWorkflowID ¶
func (_m *VisibilityManager) ListOpenWorkflowExecutionsByWorkflowID(request *persistence.ListWorkflowExecutionsByWorkflowIDRequest) (*persistence.ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByWorkflowID provides a mock function with given fields: request
func (*VisibilityManager) ListWorkflowExecutions ¶ added in v0.5.7
func (_m *VisibilityManager) ListWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequestV2) (*persistence.ListWorkflowExecutionsResponse, error)
ListWorkflowExecutions provides a mock function with given fields: request
func (*VisibilityManager) RecordWorkflowExecutionClosed ¶
func (_m *VisibilityManager) RecordWorkflowExecutionClosed(request *persistence.RecordWorkflowExecutionClosedRequest) error
RecordWorkflowExecutionClosed provides a mock function with given fields: request
func (*VisibilityManager) RecordWorkflowExecutionStarted ¶
func (_m *VisibilityManager) RecordWorkflowExecutionStarted(request *persistence.RecordWorkflowExecutionStartedRequest) error
RecordWorkflowExecutionStarted provides a mock function with given fields: request
func (*VisibilityManager) ScanWorkflowExecutions ¶ added in v0.5.8
func (_m *VisibilityManager) ScanWorkflowExecutions(request *persistence.ListWorkflowExecutionsRequestV2) (*persistence.ListWorkflowExecutionsResponse, error)
ScanWorkflowExecutions provides a mock function with given fields: request
func (*VisibilityManager) UpsertWorkflowExecution ¶ added in v0.6.0
func (_m *VisibilityManager) UpsertWorkflowExecution(request *persistence.UpsertWorkflowExecutionRequest) error
UpsertWorkflowExecution provides a mock function with given fields: request