Documentation
¶
Overview ¶
Package persistence is a generated GoMock package.
Package persistence is a generated GoMock package.
Package persistence is a generated GoMock package.
Package persistence is a generated GoMock package.
Package persistence is a generated GoMock package.
Package persistence is a generated GoMock package.
Index ¶
- Constants
- Variables
- func BuildHistoryGarbageCleanupInfo(domainID, workflowID, runID string) string
- func DBTimestampToUnixNano(milliseconds int64) int64
- func FromDataBlob(blob *DataBlob) ([]byte, string)
- func FromInternalWorkflowExecutionCloseStatus(closeStatus *types.WorkflowExecutionCloseStatus) int
- func HasMoreRowsToDelete(rowsDeleted, batchSize int) bool
- func IsBackgroundTransientError(err error) bool
- func IsNopUpsertWorkflowRequest(request *InternalUpsertWorkflowExecutionRequest) bool
- func IsTaskCorrupted(task Task) bool
- func IsTimeoutError(err error) bool
- func IsTransientError(err error) bool
- func NewHistoryBranchToken(treeID string) ([]byte, error)
- func NewHistoryBranchTokenByBranchID(treeID, branchID string) ([]byte, error)
- func NewHistoryBranchTokenFromAnother(branchID string, anotherToken []byte) ([]byte, error)
- func NewUnknownEncodingTypeError(encodingType constants.EncodingType) error
- func SerializeClusterConfigs(replicationConfigs []*ClusterReplicationConfig) []map[string]interface{}
- func SplitHistoryGarbageCleanupInfo(info string) (domainID, workflowID, runID string, err error)
- func TaskListKindHasTTL(taskListKind int) bool
- func ToInternalWorkflowExecutionCloseStatus(closeStatus int) *types.WorkflowExecutionCloseStatus
- func UnixNanoToDBTimestamp(timestamp int64) int64
- func ValidateConflictResolveWorkflowModeState(mode ConflictResolveWorkflowMode, ...) error
- func ValidateCreateWorkflowModeState(mode CreateWorkflowMode, newWorkflowSnapshot InternalWorkflowSnapshot) error
- func ValidateCreateWorkflowStateCloseStatus(state int, closeStatus int) error
- func ValidateUpdateWorkflowModeState(mode UpdateWorkflowMode, currentWorkflowMutation InternalWorkflowMutation, ...) error
- func ValidateUpdateWorkflowStateCloseStatus(state int, closeStatus int) error
- type ActivityInfo
- type ActivityRetryTimerTask
- func (r *ActivityRetryTimerTask) ByteSize() uint64
- func (r *ActivityRetryTimerTask) GetTaskCategory() HistoryTaskCategory
- func (r *ActivityRetryTimerTask) GetTaskKey() HistoryTaskKey
- func (r *ActivityRetryTimerTask) GetTaskType() int
- func (r *ActivityRetryTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (r *ActivityRetryTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (r *ActivityRetryTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type ActivityTask
- func (a *ActivityTask) ByteSize() uint64
- func (a *ActivityTask) GetTaskCategory() HistoryTaskCategory
- func (a *ActivityTask) GetTaskKey() HistoryTaskKey
- func (a *ActivityTask) GetTaskType() int
- func (a *ActivityTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *ActivityTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *ActivityTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type ActivityTimeoutTask
- func (a *ActivityTimeoutTask) ByteSize() uint64
- func (a *ActivityTimeoutTask) GetTaskCategory() HistoryTaskCategory
- func (a *ActivityTimeoutTask) GetTaskKey() HistoryTaskKey
- func (a *ActivityTimeoutTask) GetTaskType() int
- func (a *ActivityTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *ActivityTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *ActivityTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type AppendHistoryNodesRequest
- type AppendHistoryNodesResponse
- type CadenceDeserializationError
- type CadenceSerializationError
- type CancelExecutionTask
- func (u *CancelExecutionTask) ByteSize() uint64
- func (u *CancelExecutionTask) GetTaskCategory() HistoryTaskCategory
- func (u *CancelExecutionTask) GetTaskKey() HistoryTaskKey
- func (u *CancelExecutionTask) GetTaskType() int
- func (u *CancelExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *CancelExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *CancelExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type ChildExecutionInfo
- type CloseExecutionTask
- func (a *CloseExecutionTask) ByteSize() uint64
- func (a *CloseExecutionTask) GetTaskCategory() HistoryTaskCategory
- func (a *CloseExecutionTask) GetTaskKey() HistoryTaskKey
- func (a *CloseExecutionTask) GetTaskType() int
- func (a *CloseExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *CloseExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *CloseExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type Closeable
- type ClusterReplicationConfig
- type CompleteForkBranchRequest
- type CompleteHistoryTaskRequest
- type CompleteTaskRequest
- type CompleteTasksLessThanRequest
- type CompleteTasksLessThanResponse
- type ConditionFailedError
- type ConfigStore
- type ConfigStoreManager
- type ConfigType
- type ConflictResolveWorkflowExecutionRequest
- type ConflictResolveWorkflowExecutionResponse
- type ConflictResolveWorkflowMode
- type CountWorkflowExecutionsRequest
- type CountWorkflowExecutionsResponse
- type CreateDomainRequest
- type CreateDomainResponse
- type CreateFailoverMarkersRequest
- type CreateShardRequest
- type CreateTaskInfo
- type CreateTasksRequest
- type CreateTasksResponse
- type CreateWorkflowExecutionRequest
- type CreateWorkflowExecutionResponse
- type CreateWorkflowMode
- type CreateWorkflowRequestMode
- type CrossClusterTaskInfo
- type CurrentWorkflowConditionFailedError
- type CurrentWorkflowExecution
- type DBUnavailableError
- type DataBlob
- type DecisionTask
- func (d *DecisionTask) ByteSize() uint64
- func (d *DecisionTask) GetTaskCategory() HistoryTaskCategory
- func (d *DecisionTask) GetTaskKey() HistoryTaskKey
- func (d *DecisionTask) GetTaskType() int
- func (d *DecisionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (d *DecisionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (d *DecisionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type DecisionTimeoutTask
- func (d *DecisionTimeoutTask) ByteSize() uint64
- func (d *DecisionTimeoutTask) GetTaskCategory() HistoryTaskCategory
- func (d *DecisionTimeoutTask) GetTaskKey() HistoryTaskKey
- func (d *DecisionTimeoutTask) GetTaskType() int
- func (d *DecisionTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (d *DecisionTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (d *DecisionTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type DeleteCurrentWorkflowExecutionRequest
- type DeleteDomainByNameRequest
- type DeleteDomainRequest
- type DeleteHistoryBranchRequest
- type DeleteHistoryEventTask
- func (a *DeleteHistoryEventTask) ByteSize() uint64
- func (a *DeleteHistoryEventTask) GetTaskCategory() HistoryTaskCategory
- func (a *DeleteHistoryEventTask) GetTaskKey() HistoryTaskKey
- func (a *DeleteHistoryEventTask) GetTaskType() int
- func (a *DeleteHistoryEventTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *DeleteHistoryEventTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *DeleteHistoryEventTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type DeleteReplicationTaskFromDLQRequest
- type DeleteTaskListRequest
- type DeleteWorkflowExecutionRequest
- type DomainConfig
- type DomainInfo
- type DomainManager
- type DomainReplicationConfig
- type DomainStore
- type DuplicateRequestError
- type DynamicConfigSnapshot
- type DynamicConfiguration
- type ExecutionManager
- type ExecutionManagerFactory
- type ExecutionStats
- type ExecutionStore
- type FailoverLevel
- type FailoverMarkerTask
- func (a *FailoverMarkerTask) ByteSize() uint64
- func (a *FailoverMarkerTask) GetDomainID() string
- func (a *FailoverMarkerTask) GetRunID() string
- func (a *FailoverMarkerTask) GetTaskCategory() HistoryTaskCategory
- func (a *FailoverMarkerTask) GetTaskKey() HistoryTaskKey
- func (a *FailoverMarkerTask) GetTaskType() int
- func (a *FailoverMarkerTask) GetWorkflowID() string
- func (a *FailoverMarkerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *FailoverMarkerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *FailoverMarkerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type FetchDynamicConfigResponse
- type ForkHistoryBranchRequest
- type ForkHistoryBranchResponse
- type GetAllHistoryTreeBranchesRequest
- type GetAllHistoryTreeBranchesResponse
- type GetClosedWorkflowExecutionRequest
- type GetClosedWorkflowExecutionResponse
- type GetCurrentExecutionRequest
- type GetCurrentExecutionResponse
- type GetDomainRequest
- type GetDomainResponse
- type GetHistoryTasksRequest
- type GetHistoryTasksResponse
- type GetHistoryTreeRequest
- type GetHistoryTreeResponse
- type GetMetadataResponse
- type GetOrphanTasksRequest
- type GetOrphanTasksResponse
- type GetReplicationDLQSizeRequest
- type GetReplicationDLQSizeResponse
- type GetReplicationTasksFromDLQRequest
- type GetShardRequest
- type GetShardResponse
- type GetTaskListRequest
- type GetTaskListResponse
- type GetTaskListSizeRequest
- type GetTaskListSizeResponse
- type GetTasksRequest
- type GetTasksResponse
- type GetWorkflowExecutionRequest
- type GetWorkflowExecutionResponse
- type HistoryBranchDetail
- type HistoryManager
- type HistoryReplicationTask
- func (a *HistoryReplicationTask) ByteSize() uint64
- func (a *HistoryReplicationTask) GetTaskCategory() HistoryTaskCategory
- func (a *HistoryReplicationTask) GetTaskKey() HistoryTaskKey
- func (a *HistoryReplicationTask) GetTaskType() int
- func (a *HistoryReplicationTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *HistoryReplicationTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *HistoryReplicationTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type HistoryStore
- type HistoryTaskCategory
- type HistoryTaskKey
- type InternalActivityInfo
- type InternalAppendHistoryEventsRequest
- type InternalAppendHistoryNodesRequest
- type InternalChildExecutionInfo
- type InternalCompleteForkBranchRequest
- type InternalConfigStoreEntry
- type InternalConflictResolveWorkflowExecutionRequest
- type InternalCreateDomainRequest
- type InternalCreateShardRequest
- type InternalCreateWorkflowExecutionRequest
- type InternalDeleteHistoryBranchRequest
- type InternalDomainConfig
- type InternalDomainReplicationConfig
- type InternalForkHistoryBranchRequest
- type InternalForkHistoryBranchResponse
- type InternalGetClosedWorkflowExecutionRequest
- type InternalGetClosedWorkflowExecutionResponse
- type InternalGetDomainResponse
- type InternalGetHistoryTreeRequest
- type InternalGetHistoryTreeResponse
- type InternalGetShardRequest
- type InternalGetShardResponse
- type InternalGetWorkflowExecutionRequest
- type InternalGetWorkflowExecutionResponse
- type InternalListClosedWorkflowExecutionsByStatusRequest
- type InternalListConcreteExecutionsEntity
- type InternalListConcreteExecutionsResponse
- type InternalListDomainsResponse
- type InternalListWorkflowExecutionsByTypeRequest
- type InternalListWorkflowExecutionsByWorkflowIDRequest
- type InternalListWorkflowExecutionsRequest
- type InternalListWorkflowExecutionsResponse
- type InternalPutReplicationTaskToDLQRequest
- type InternalQueueMessage
- type InternalReadHistoryBranchRequest
- type InternalReadHistoryBranchResponse
- type InternalRecordWorkflowExecutionClosedRequest
- type InternalRecordWorkflowExecutionStartedRequest
- type InternalRecordWorkflowExecutionUninitializedRequest
- type InternalReplicationTaskInfo
- type InternalShardInfo
- type InternalUpdateDomainRequest
- type InternalUpdateShardRequest
- type InternalUpdateWorkflowExecutionRequest
- type InternalUpsertWorkflowExecutionRequest
- type InternalVisibilityWorkflowExecutionInfo
- type InternalWorkflowExecutionInfo
- type InternalWorkflowMutableState
- type InternalWorkflowMutation
- type InternalWorkflowSnapshot
- type InvalidPersistenceRequestError
- type IsWorkflowExecutionExistsRequest
- type IsWorkflowExecutionExistsResponse
- type LeaseTaskListRequest
- type LeaseTaskListResponse
- type ListClosedWorkflowExecutionsByStatusRequest
- type ListConcreteExecutionsEntity
- type ListConcreteExecutionsRequest
- type ListConcreteExecutionsResponse
- type ListCurrentExecutionsRequest
- type ListCurrentExecutionsResponse
- type ListDomainsRequest
- type ListDomainsResponse
- type ListTaskListRequest
- type ListTaskListResponse
- type ListWorkflowExecutionsByQueryRequest
- type ListWorkflowExecutionsByTypeRequest
- type ListWorkflowExecutionsByWorkflowIDRequest
- type ListWorkflowExecutionsRequest
- type ListWorkflowExecutionsResponse
- type MockConfigStore
- func (m *MockConfigStore) Close()
- func (m *MockConfigStore) EXPECT() *MockConfigStoreMockRecorder
- func (m *MockConfigStore) FetchConfig(ctx context.Context, configType ConfigType) (*InternalConfigStoreEntry, error)
- func (m *MockConfigStore) UpdateConfig(ctx context.Context, value *InternalConfigStoreEntry) error
- type MockConfigStoreManager
- func (m *MockConfigStoreManager) Close()
- func (m *MockConfigStoreManager) EXPECT() *MockConfigStoreManagerMockRecorder
- func (m *MockConfigStoreManager) FetchDynamicConfig(ctx context.Context, cfgType ConfigType) (*FetchDynamicConfigResponse, error)
- func (m *MockConfigStoreManager) UpdateDynamicConfig(ctx context.Context, request *UpdateDynamicConfigRequest, cfgType ConfigType) error
- type MockConfigStoreManagerMockRecorder
- type MockConfigStoreMockRecorder
- type MockDomainManager
- func (m *MockDomainManager) Close()
- func (m *MockDomainManager) CreateDomain(ctx context.Context, request *CreateDomainRequest) (*CreateDomainResponse, error)
- func (m *MockDomainManager) DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
- func (m *MockDomainManager) DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
- func (m *MockDomainManager) EXPECT() *MockDomainManagerMockRecorder
- func (m *MockDomainManager) GetDomain(ctx context.Context, request *GetDomainRequest) (*GetDomainResponse, error)
- func (m *MockDomainManager) GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
- func (m *MockDomainManager) GetName() string
- func (m *MockDomainManager) ListDomains(ctx context.Context, request *ListDomainsRequest) (*ListDomainsResponse, error)
- func (m *MockDomainManager) UpdateDomain(ctx context.Context, request *UpdateDomainRequest) error
- type MockDomainManagerMockRecorder
- func (mr *MockDomainManagerMockRecorder) Close() *gomock.Call
- func (mr *MockDomainManagerMockRecorder) CreateDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) DeleteDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) DeleteDomainByName(ctx, request any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) GetDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) GetMetadata(ctx any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockDomainManagerMockRecorder) ListDomains(ctx, request any) *gomock.Call
- func (mr *MockDomainManagerMockRecorder) UpdateDomain(ctx, request any) *gomock.Call
- type MockDomainStore
- func (m *MockDomainStore) Close()
- func (m *MockDomainStore) CreateDomain(ctx context.Context, request *InternalCreateDomainRequest) (*CreateDomainResponse, error)
- func (m *MockDomainStore) DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
- func (m *MockDomainStore) DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
- func (m *MockDomainStore) EXPECT() *MockDomainStoreMockRecorder
- func (m *MockDomainStore) GetDomain(ctx context.Context, request *GetDomainRequest) (*InternalGetDomainResponse, error)
- func (m *MockDomainStore) GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
- func (m *MockDomainStore) GetName() string
- func (m *MockDomainStore) ListDomains(ctx context.Context, request *ListDomainsRequest) (*InternalListDomainsResponse, error)
- func (m *MockDomainStore) UpdateDomain(ctx context.Context, request *InternalUpdateDomainRequest) error
- type MockDomainStoreMockRecorder
- func (mr *MockDomainStoreMockRecorder) Close() *gomock.Call
- func (mr *MockDomainStoreMockRecorder) CreateDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) DeleteDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) DeleteDomainByName(ctx, request any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) GetDomain(ctx, request any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) GetMetadata(ctx any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockDomainStoreMockRecorder) ListDomains(ctx, request any) *gomock.Call
- func (mr *MockDomainStoreMockRecorder) UpdateDomain(ctx, request any) *gomock.Call
- type MockExecutionManager
- func (m *MockExecutionManager) Close()
- func (m *MockExecutionManager) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
- func (m *MockExecutionManager) ConflictResolveWorkflowExecution(ctx context.Context, request *ConflictResolveWorkflowExecutionRequest) (*ConflictResolveWorkflowExecutionResponse, error)
- func (m *MockExecutionManager) CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
- func (m *MockExecutionManager) CreateWorkflowExecution(ctx context.Context, request *CreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
- func (m *MockExecutionManager) DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, workflowID, runID string) error
- func (m *MockExecutionManager) DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
- func (m *MockExecutionManager) DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
- func (m *MockExecutionManager) DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
- func (m *MockExecutionManager) EXPECT() *MockExecutionManagerMockRecorder
- func (m *MockExecutionManager) GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*types.ActiveClusterSelectionPolicy, error)
- func (m *MockExecutionManager) GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
- func (m *MockExecutionManager) GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
- func (m *MockExecutionManager) GetName() string
- func (m *MockExecutionManager) GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
- func (m *MockExecutionManager) GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
- func (m *MockExecutionManager) GetShardID() int
- func (m *MockExecutionManager) GetWorkflowExecution(ctx context.Context, request *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
- func (m *MockExecutionManager) IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
- func (m *MockExecutionManager) ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
- func (m *MockExecutionManager) ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
- func (m *MockExecutionManager) PutReplicationTaskToDLQ(ctx context.Context, request *PutReplicationTaskToDLQRequest) error
- func (m *MockExecutionManager) RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
- func (m *MockExecutionManager) RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
- func (m *MockExecutionManager) UpdateWorkflowExecution(ctx context.Context, request *UpdateWorkflowExecutionRequest) (*UpdateWorkflowExecutionResponse, error)
- type MockExecutionManagerFactory
- type MockExecutionManagerFactoryMockRecorder
- type MockExecutionManagerMockRecorder
- func (mr *MockExecutionManagerMockRecorder) Close() *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) ConflictResolveWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) CreateFailoverMarkerTasks(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) CreateWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) DeleteActiveClusterSelectionPolicy(ctx, domainID, workflowID, runID any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) DeleteCurrentWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) DeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetCurrentExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetHistoryTasks(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetReplicationDLQSize(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetReplicationTasksFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetShardID() *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) GetWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) IsWorkflowExecutionExists(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) ListConcreteExecutions(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) ListCurrentExecutions(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) PutReplicationTaskToDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) RangeCompleteHistoryTask(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) RangeDeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionManagerMockRecorder) UpdateWorkflowExecution(ctx, request any) *gomock.Call
- type MockExecutionStore
- func (m *MockExecutionStore) Close()
- func (m *MockExecutionStore) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
- func (m *MockExecutionStore) ConflictResolveWorkflowExecution(ctx context.Context, request *InternalConflictResolveWorkflowExecutionRequest) error
- func (m *MockExecutionStore) CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
- func (m *MockExecutionStore) CreateWorkflowExecution(ctx context.Context, request *InternalCreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
- func (m *MockExecutionStore) DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) error
- func (m *MockExecutionStore) DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
- func (m *MockExecutionStore) DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
- func (m *MockExecutionStore) DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
- func (m *MockExecutionStore) EXPECT() *MockExecutionStoreMockRecorder
- func (m *MockExecutionStore) GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*DataBlob, error)
- func (m *MockExecutionStore) GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
- func (m *MockExecutionStore) GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
- func (m *MockExecutionStore) GetName() string
- func (m *MockExecutionStore) GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
- func (m *MockExecutionStore) GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
- func (m *MockExecutionStore) GetShardID() int
- func (m *MockExecutionStore) GetWorkflowExecution(ctx context.Context, request *InternalGetWorkflowExecutionRequest) (*InternalGetWorkflowExecutionResponse, error)
- func (m *MockExecutionStore) IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
- func (m *MockExecutionStore) ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*InternalListConcreteExecutionsResponse, error)
- func (m *MockExecutionStore) ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
- func (m *MockExecutionStore) PutReplicationTaskToDLQ(ctx context.Context, request *InternalPutReplicationTaskToDLQRequest) error
- func (m *MockExecutionStore) RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
- func (m *MockExecutionStore) RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
- func (m *MockExecutionStore) UpdateWorkflowExecution(ctx context.Context, request *InternalUpdateWorkflowExecutionRequest) error
- type MockExecutionStoreMockRecorder
- func (mr *MockExecutionStoreMockRecorder) Close() *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) ConflictResolveWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) CreateFailoverMarkerTasks(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) CreateWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) DeleteActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) DeleteCurrentWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) DeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetCurrentExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetHistoryTasks(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetReplicationDLQSize(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetReplicationTasksFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetShardID() *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) GetWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) IsWorkflowExecutionExists(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) ListConcreteExecutions(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) ListCurrentExecutions(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) PutReplicationTaskToDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) RangeCompleteHistoryTask(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) RangeDeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
- func (mr *MockExecutionStoreMockRecorder) UpdateWorkflowExecution(ctx, request any) *gomock.Call
- type MockHistoryManager
- func (m *MockHistoryManager) AppendHistoryNodes(ctx context.Context, request *AppendHistoryNodesRequest) (*AppendHistoryNodesResponse, error)
- func (m *MockHistoryManager) Close()
- func (m *MockHistoryManager) DeleteHistoryBranch(ctx context.Context, request *DeleteHistoryBranchRequest) error
- func (m *MockHistoryManager) EXPECT() *MockHistoryManagerMockRecorder
- func (m *MockHistoryManager) ForkHistoryBranch(ctx context.Context, request *ForkHistoryBranchRequest) (*ForkHistoryBranchResponse, error)
- func (m *MockHistoryManager) GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
- func (m *MockHistoryManager) GetHistoryTree(ctx context.Context, request *GetHistoryTreeRequest) (*GetHistoryTreeResponse, error)
- func (m *MockHistoryManager) GetName() string
- func (m *MockHistoryManager) ReadHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
- func (m *MockHistoryManager) ReadHistoryBranchByBatch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchByBatchResponse, error)
- func (m *MockHistoryManager) ReadRawHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadRawHistoryBranchResponse, error)
- type MockHistoryManagerMockRecorder
- func (mr *MockHistoryManagerMockRecorder) AppendHistoryNodes(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) Close() *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) DeleteHistoryBranch(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) ForkHistoryBranch(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) GetAllHistoryTreeBranches(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) GetHistoryTree(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) ReadHistoryBranch(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) ReadHistoryBranchByBatch(ctx, request any) *gomock.Call
- func (mr *MockHistoryManagerMockRecorder) ReadRawHistoryBranch(ctx, request any) *gomock.Call
- type MockHistoryStore
- func (m *MockHistoryStore) AppendHistoryNodes(ctx context.Context, request *InternalAppendHistoryNodesRequest) error
- func (m *MockHistoryStore) Close()
- func (m *MockHistoryStore) DeleteHistoryBranch(ctx context.Context, request *InternalDeleteHistoryBranchRequest) error
- func (m *MockHistoryStore) EXPECT() *MockHistoryStoreMockRecorder
- func (m *MockHistoryStore) ForkHistoryBranch(ctx context.Context, request *InternalForkHistoryBranchRequest) (*InternalForkHistoryBranchResponse, error)
- func (m *MockHistoryStore) GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
- func (m *MockHistoryStore) GetHistoryTree(ctx context.Context, request *InternalGetHistoryTreeRequest) (*InternalGetHistoryTreeResponse, error)
- func (m *MockHistoryStore) GetName() string
- func (m *MockHistoryStore) ReadHistoryBranch(ctx context.Context, request *InternalReadHistoryBranchRequest) (*InternalReadHistoryBranchResponse, error)
- type MockHistoryStoreMockRecorder
- func (mr *MockHistoryStoreMockRecorder) AppendHistoryNodes(ctx, request any) *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) Close() *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) DeleteHistoryBranch(ctx, request any) *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) ForkHistoryBranch(ctx, request any) *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) GetAllHistoryTreeBranches(ctx, request any) *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) GetHistoryTree(ctx, request any) *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockHistoryStoreMockRecorder) ReadHistoryBranch(ctx, request any) *gomock.Call
- type MockPayloadSerializer
- func (m *MockPayloadSerializer) DeserializeActiveClusterSelectionPolicy(data *DataBlob) (*types.ActiveClusterSelectionPolicy, error)
- func (m *MockPayloadSerializer) DeserializeActiveClusters(data *DataBlob) (*types.ActiveClusters, error)
- func (m *MockPayloadSerializer) DeserializeAsyncWorkflowsConfig(data *DataBlob) (*types.AsyncWorkflowConfiguration, error)
- func (m *MockPayloadSerializer) DeserializeBadBinaries(data *DataBlob) (*types.BadBinaries, error)
- func (m *MockPayloadSerializer) DeserializeBatchEvents(data *DataBlob) ([]*types.HistoryEvent, error)
- func (m *MockPayloadSerializer) DeserializeChecksum(data *DataBlob) (checksum.Checksum, error)
- func (m *MockPayloadSerializer) DeserializeDynamicConfigBlob(data *DataBlob) (*types.DynamicConfigBlob, error)
- func (m *MockPayloadSerializer) DeserializeEvent(data *DataBlob) (*types.HistoryEvent, error)
- func (m *MockPayloadSerializer) DeserializeIsolationGroups(data *DataBlob) (*types.IsolationGroupConfiguration, error)
- func (m *MockPayloadSerializer) DeserializePendingFailoverMarkers(data *DataBlob) ([]*types.FailoverMarkerAttributes, error)
- func (m *MockPayloadSerializer) DeserializeProcessingQueueStates(data *DataBlob) (*types.ProcessingQueueStates, error)
- func (m *MockPayloadSerializer) DeserializeResetPoints(data *DataBlob) (*types.ResetPoints, error)
- func (m *MockPayloadSerializer) DeserializeVersionHistories(data *DataBlob) (*types.VersionHistories, error)
- func (m *MockPayloadSerializer) DeserializeVisibilityMemo(data *DataBlob) (*types.Memo, error)
- func (m *MockPayloadSerializer) EXPECT() *MockPayloadSerializerMockRecorder
- func (m *MockPayloadSerializer) SerializeActiveClusterSelectionPolicy(policy *types.ActiveClusterSelectionPolicy, ...) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeActiveClusters(activeClusters *types.ActiveClusters, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeAsyncWorkflowsConfig(config *types.AsyncWorkflowConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeBadBinaries(event *types.BadBinaries, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeBatchEvents(batch []*types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeChecksum(sum checksum.Checksum, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeDynamicConfigBlob(blob *types.DynamicConfigBlob, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeEvent(event *types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeIsolationGroups(event *types.IsolationGroupConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializePendingFailoverMarkers(markers []*types.FailoverMarkerAttributes, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeProcessingQueueStates(states *types.ProcessingQueueStates, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeResetPoints(event *types.ResetPoints, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeVersionHistories(histories *types.VersionHistories, encodingType constants.EncodingType) (*DataBlob, error)
- func (m *MockPayloadSerializer) SerializeVisibilityMemo(memo *types.Memo, encodingType constants.EncodingType) (*DataBlob, error)
- type MockPayloadSerializerMockRecorder
- func (mr *MockPayloadSerializerMockRecorder) DeserializeActiveClusterSelectionPolicy(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeActiveClusters(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeAsyncWorkflowsConfig(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeBadBinaries(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeBatchEvents(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeChecksum(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeDynamicConfigBlob(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeEvent(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeIsolationGroups(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializePendingFailoverMarkers(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeProcessingQueueStates(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeResetPoints(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeVersionHistories(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) DeserializeVisibilityMemo(data any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeActiveClusterSelectionPolicy(policy, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeActiveClusters(activeClusters, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeAsyncWorkflowsConfig(config, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeBadBinaries(event, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeBatchEvents(batch, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeChecksum(sum, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeDynamicConfigBlob(blob, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeEvent(event, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeIsolationGroups(event, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializePendingFailoverMarkers(markers, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeProcessingQueueStates(states, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeResetPoints(event, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeVersionHistories(histories, encodingType any) *gomock.Call
- func (mr *MockPayloadSerializerMockRecorder) SerializeVisibilityMemo(memo, encodingType any) *gomock.Call
- type MockQueueManager
- func (m *MockQueueManager) Close()
- func (m *MockQueueManager) DeleteMessageFromDLQ(ctx context.Context, messageID int64) error
- func (m *MockQueueManager) DeleteMessagesBefore(ctx context.Context, messageID int64) error
- func (m *MockQueueManager) EXPECT() *MockQueueManagerMockRecorder
- func (m *MockQueueManager) EnqueueMessage(ctx context.Context, messagePayload []byte) error
- func (m *MockQueueManager) EnqueueMessageToDLQ(ctx context.Context, messagePayload []byte) error
- func (m *MockQueueManager) GetAckLevels(ctx context.Context) (map[string]int64, error)
- func (m *MockQueueManager) GetDLQAckLevels(ctx context.Context) (map[string]int64, error)
- func (m *MockQueueManager) GetDLQSize(ctx context.Context) (int64, error)
- func (m *MockQueueManager) RangeDeleteMessagesFromDLQ(ctx context.Context, firstMessageID, lastMessageID int64) error
- func (m *MockQueueManager) ReadMessages(ctx context.Context, lastMessageID int64, maxCount int) (QueueMessageList, error)
- func (m *MockQueueManager) ReadMessagesFromDLQ(ctx context.Context, firstMessageID, lastMessageID int64, pageSize int, ...) ([]*QueueMessage, []byte, error)
- func (m *MockQueueManager) UpdateAckLevel(ctx context.Context, messageID int64, clusterName string) error
- func (m *MockQueueManager) UpdateDLQAckLevel(ctx context.Context, messageID int64, clusterName string) error
- type MockQueueManagerMockRecorder
- func (mr *MockQueueManagerMockRecorder) Close() *gomock.Call
- func (mr *MockQueueManagerMockRecorder) DeleteMessageFromDLQ(ctx, messageID any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) DeleteMessagesBefore(ctx, messageID any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) EnqueueMessage(ctx, messagePayload any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) EnqueueMessageToDLQ(ctx, messagePayload any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) GetAckLevels(ctx any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) GetDLQAckLevels(ctx any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) GetDLQSize(ctx any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) RangeDeleteMessagesFromDLQ(ctx, firstMessageID, lastMessageID any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) ReadMessages(ctx, lastMessageID, maxCount any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) ReadMessagesFromDLQ(ctx, firstMessageID, lastMessageID, pageSize, pageToken any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) UpdateAckLevel(ctx, messageID, clusterName any) *gomock.Call
- func (mr *MockQueueManagerMockRecorder) UpdateDLQAckLevel(ctx, messageID, clusterName any) *gomock.Call
- type MockRetryer
- func (m *MockRetryer) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
- func (m *MockRetryer) DeleteCurrentWorkflowExecution(arg0 context.Context, arg1 *DeleteCurrentWorkflowExecutionRequest) error
- func (m *MockRetryer) DeleteWorkflowExecution(arg0 context.Context, arg1 *DeleteWorkflowExecutionRequest) error
- func (m *MockRetryer) EXPECT() *MockRetryerMockRecorder
- func (m *MockRetryer) GetCurrentExecution(arg0 context.Context, arg1 *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
- func (m *MockRetryer) GetHistoryTasks(arg0 context.Context, arg1 *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
- func (m *MockRetryer) GetShardID() int
- func (m *MockRetryer) GetWorkflowExecution(arg0 context.Context, arg1 *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
- func (m *MockRetryer) IsWorkflowExecutionExists(arg0 context.Context, arg1 *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
- func (m *MockRetryer) ListConcreteExecutions(arg0 context.Context, arg1 *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
- func (m *MockRetryer) ListCurrentExecutions(arg0 context.Context, arg1 *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
- func (m *MockRetryer) ReadHistoryBranch(arg0 context.Context, arg1 *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
- type MockRetryerMockRecorder
- func (mr *MockRetryerMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
- func (mr *MockRetryerMockRecorder) DeleteCurrentWorkflowExecution(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) DeleteWorkflowExecution(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) GetCurrentExecution(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) GetHistoryTasks(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) GetShardID() *gomock.Call
- func (mr *MockRetryerMockRecorder) GetWorkflowExecution(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) IsWorkflowExecutionExists(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) ListConcreteExecutions(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) ListCurrentExecutions(arg0, arg1 any) *gomock.Call
- func (mr *MockRetryerMockRecorder) ReadHistoryBranch(arg0, arg1 any) *gomock.Call
- type MockShardManager
- func (m *MockShardManager) Close()
- func (m *MockShardManager) CreateShard(ctx context.Context, request *CreateShardRequest) error
- func (m *MockShardManager) EXPECT() *MockShardManagerMockRecorder
- func (m *MockShardManager) GetName() string
- func (m *MockShardManager) GetShard(ctx context.Context, request *GetShardRequest) (*GetShardResponse, error)
- func (m *MockShardManager) UpdateShard(ctx context.Context, request *UpdateShardRequest) error
- type MockShardManagerMockRecorder
- func (mr *MockShardManagerMockRecorder) Close() *gomock.Call
- func (mr *MockShardManagerMockRecorder) CreateShard(ctx, request any) *gomock.Call
- func (mr *MockShardManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockShardManagerMockRecorder) GetShard(ctx, request any) *gomock.Call
- func (mr *MockShardManagerMockRecorder) UpdateShard(ctx, request any) *gomock.Call
- type MockShardStore
- func (m *MockShardStore) Close()
- func (m *MockShardStore) CreateShard(ctx context.Context, request *InternalCreateShardRequest) error
- func (m *MockShardStore) EXPECT() *MockShardStoreMockRecorder
- func (m *MockShardStore) GetName() string
- func (m *MockShardStore) GetShard(ctx context.Context, request *InternalGetShardRequest) (*InternalGetShardResponse, error)
- func (m *MockShardStore) UpdateShard(ctx context.Context, request *InternalUpdateShardRequest) error
- type MockShardStoreMockRecorder
- func (mr *MockShardStoreMockRecorder) Close() *gomock.Call
- func (mr *MockShardStoreMockRecorder) CreateShard(ctx, request any) *gomock.Call
- func (mr *MockShardStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockShardStoreMockRecorder) GetShard(ctx, request any) *gomock.Call
- func (mr *MockShardStoreMockRecorder) UpdateShard(ctx, request any) *gomock.Call
- type MockTask
- func (m *MockTask) ByteSize() uint64
- func (m *MockTask) EXPECT() *MockTaskMockRecorder
- func (m *MockTask) GetDomainID() string
- func (m *MockTask) GetRunID() string
- func (m *MockTask) GetTaskCategory() HistoryTaskCategory
- func (m *MockTask) GetTaskID() int64
- func (m *MockTask) GetTaskKey() HistoryTaskKey
- func (m *MockTask) GetTaskType() int
- func (m *MockTask) GetVersion() int64
- func (m *MockTask) GetVisibilityTimestamp() time.Time
- func (m *MockTask) GetWorkflowID() string
- func (m *MockTask) SetTaskID(id int64)
- func (m *MockTask) SetVersion(version int64)
- func (m *MockTask) SetVisibilityTimestamp(timestamp time.Time)
- func (m *MockTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (m *MockTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (m *MockTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type MockTaskManager
- func (m *MockTaskManager) Close()
- func (m *MockTaskManager) CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
- func (m *MockTaskManager) CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
- func (m *MockTaskManager) CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
- func (m *MockTaskManager) DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
- func (m *MockTaskManager) EXPECT() *MockTaskManagerMockRecorder
- func (m *MockTaskManager) GetName() string
- func (m *MockTaskManager) GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
- func (m *MockTaskManager) GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
- func (m *MockTaskManager) GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
- func (m *MockTaskManager) GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
- func (m *MockTaskManager) LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
- func (m *MockTaskManager) ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
- func (m *MockTaskManager) UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
- type MockTaskManagerMockRecorder
- func (mr *MockTaskManagerMockRecorder) Close() *gomock.Call
- func (mr *MockTaskManagerMockRecorder) CompleteTask(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) CompleteTasksLessThan(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) CreateTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) DeleteTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetOrphanTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetTaskListSize(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) LeaseTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) ListTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) UpdateTaskList(ctx, request any) *gomock.Call
- type MockTaskMockRecorder
- func (mr *MockTaskMockRecorder) ByteSize() *gomock.Call
- func (mr *MockTaskMockRecorder) GetDomainID() *gomock.Call
- func (mr *MockTaskMockRecorder) GetRunID() *gomock.Call
- func (mr *MockTaskMockRecorder) GetTaskCategory() *gomock.Call
- func (mr *MockTaskMockRecorder) GetTaskID() *gomock.Call
- func (mr *MockTaskMockRecorder) GetTaskKey() *gomock.Call
- func (mr *MockTaskMockRecorder) GetTaskType() *gomock.Call
- func (mr *MockTaskMockRecorder) GetVersion() *gomock.Call
- func (mr *MockTaskMockRecorder) GetVisibilityTimestamp() *gomock.Call
- func (mr *MockTaskMockRecorder) GetWorkflowID() *gomock.Call
- func (mr *MockTaskMockRecorder) SetTaskID(id any) *gomock.Call
- func (mr *MockTaskMockRecorder) SetVersion(version any) *gomock.Call
- func (mr *MockTaskMockRecorder) SetVisibilityTimestamp(timestamp any) *gomock.Call
- func (mr *MockTaskMockRecorder) ToInternalReplicationTaskInfo() *gomock.Call
- func (mr *MockTaskMockRecorder) ToTimerTaskInfo() *gomock.Call
- func (mr *MockTaskMockRecorder) ToTransferTaskInfo() *gomock.Call
- type MockTaskStore
- func (m *MockTaskStore) Close()
- func (m *MockTaskStore) CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
- func (m *MockTaskStore) CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
- func (m *MockTaskStore) CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
- func (m *MockTaskStore) DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
- func (m *MockTaskStore) EXPECT() *MockTaskStoreMockRecorder
- func (m *MockTaskStore) GetName() string
- func (m *MockTaskStore) GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
- func (m *MockTaskStore) GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
- func (m *MockTaskStore) GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
- func (m *MockTaskStore) GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
- func (m *MockTaskStore) LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
- func (m *MockTaskStore) ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
- func (m *MockTaskStore) UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
- type MockTaskStoreMockRecorder
- func (mr *MockTaskStoreMockRecorder) Close() *gomock.Call
- func (mr *MockTaskStoreMockRecorder) CompleteTask(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) CompleteTasksLessThan(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) CreateTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) DeleteTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockTaskStoreMockRecorder) GetOrphanTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) GetTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) GetTaskListSize(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) GetTasks(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) LeaseTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) ListTaskList(ctx, request any) *gomock.Call
- func (mr *MockTaskStoreMockRecorder) UpdateTaskList(ctx, request any) *gomock.Call
- type MockVisibilityManager
- func (m *MockVisibilityManager) Close()
- func (m *MockVisibilityManager) CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
- func (m *MockVisibilityManager) DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
- func (m *MockVisibilityManager) EXPECT() *MockVisibilityManagerMockRecorder
- func (m *MockVisibilityManager) GetClosedWorkflowExecution(ctx context.Context, request *GetClosedWorkflowExecutionRequest) (*GetClosedWorkflowExecutionResponse, error)
- func (m *MockVisibilityManager) GetName() string
- func (m *MockVisibilityManager) ListClosedWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByStatus(ctx context.Context, request *ListClosedWorkflowExecutionsByStatusRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListOpenWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListOpenWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) RecordWorkflowExecutionClosed(ctx context.Context, request *RecordWorkflowExecutionClosedRequest) error
- func (m *MockVisibilityManager) RecordWorkflowExecutionStarted(ctx context.Context, request *RecordWorkflowExecutionStartedRequest) error
- func (m *MockVisibilityManager) RecordWorkflowExecutionUninitialized(ctx context.Context, request *RecordWorkflowExecutionUninitializedRequest) error
- func (m *MockVisibilityManager) ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityManager) UpsertWorkflowExecution(ctx context.Context, request *UpsertWorkflowExecutionRequest) error
- type MockVisibilityManagerMockRecorder
- func (mr *MockVisibilityManagerMockRecorder) Close() *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) CountWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) DeleteUninitializedWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) GetClosedWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) GetName() *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByStatus(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByType(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByType(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ListWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionClosed(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionStarted(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionUninitialized(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) ScanWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityManagerMockRecorder) UpsertWorkflowExecution(ctx, request any) *gomock.Call
- type MockVisibilityStore
- func (m *MockVisibilityStore) Close()
- func (m *MockVisibilityStore) CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
- func (m *MockVisibilityStore) DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
- func (m *MockVisibilityStore) EXPECT() *MockVisibilityStoreMockRecorder
- func (m *MockVisibilityStore) GetClosedWorkflowExecution(ctx context.Context, request *InternalGetClosedWorkflowExecutionRequest) (*InternalGetClosedWorkflowExecutionResponse, error)
- func (m *MockVisibilityStore) GetName() string
- func (m *MockVisibilityStore) ListClosedWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByStatus(ctx context.Context, ...) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, ...) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListOpenWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListOpenWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, ...) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) RecordWorkflowExecutionClosed(ctx context.Context, request *InternalRecordWorkflowExecutionClosedRequest) error
- func (m *MockVisibilityStore) RecordWorkflowExecutionStarted(ctx context.Context, request *InternalRecordWorkflowExecutionStartedRequest) error
- func (m *MockVisibilityStore) RecordWorkflowExecutionUninitialized(ctx context.Context, ...) error
- func (m *MockVisibilityStore) ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
- func (m *MockVisibilityStore) UpsertWorkflowExecution(ctx context.Context, request *InternalUpsertWorkflowExecutionRequest) error
- type MockVisibilityStoreMockRecorder
- func (mr *MockVisibilityStoreMockRecorder) Close() *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) CountWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) DeleteUninitializedWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) GetClosedWorkflowExecution(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) GetName() *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByStatus(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByType(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByType(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ListWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionClosed(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionStarted(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionUninitialized(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) ScanWorkflowExecutions(ctx, request any) *gomock.Call
- func (mr *MockVisibilityStoreMockRecorder) UpsertWorkflowExecution(ctx, request any) *gomock.Call
- type MutableStateStats
- type MutableStateUpdateSessionStats
- type OperationType
- type PayloadSerializer
- type PutReplicationTaskToDLQRequest
- type Queue
- type QueueManager
- type QueueMessage
- type QueueMessageList
- type QueueType
- type RangeCompleteHistoryTaskRequest
- type RangeCompleteHistoryTaskResponse
- type RangeDeleteReplicationTaskFromDLQRequest
- type RangeDeleteReplicationTaskFromDLQResponse
- type ReadHistoryBranchByBatchResponse
- type ReadHistoryBranchRequest
- type ReadHistoryBranchResponse
- type ReadRawHistoryBranchResponse
- type RecordChildExecutionCompletedTask
- func (u *RecordChildExecutionCompletedTask) ByteSize() uint64
- func (u *RecordChildExecutionCompletedTask) GetTaskCategory() HistoryTaskCategory
- func (u *RecordChildExecutionCompletedTask) GetTaskKey() HistoryTaskKey
- func (u *RecordChildExecutionCompletedTask) GetTaskType() int
- func (u *RecordChildExecutionCompletedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *RecordChildExecutionCompletedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *RecordChildExecutionCompletedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type RecordWorkflowClosedTask
- func (u *RecordWorkflowClosedTask) ByteSize() uint64
- func (u *RecordWorkflowClosedTask) GetTaskCategory() HistoryTaskCategory
- func (u *RecordWorkflowClosedTask) GetTaskKey() HistoryTaskKey
- func (u *RecordWorkflowClosedTask) GetTaskType() int
- func (u *RecordWorkflowClosedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *RecordWorkflowClosedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *RecordWorkflowClosedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type RecordWorkflowExecutionClosedRequest
- type RecordWorkflowExecutionStartedRequest
- type RecordWorkflowExecutionUninitializedRequest
- type RecordWorkflowStartedTask
- func (a *RecordWorkflowStartedTask) ByteSize() uint64
- func (a *RecordWorkflowStartedTask) GetTaskCategory() HistoryTaskCategory
- func (a *RecordWorkflowStartedTask) GetTaskKey() HistoryTaskKey
- func (a *RecordWorkflowStartedTask) GetTaskType() int
- func (a *RecordWorkflowStartedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *RecordWorkflowStartedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *RecordWorkflowStartedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type ReplicationInfo
- type ReplicationState
- type ReplicationTaskInfo
- func (t *ReplicationTaskInfo) GetDomainID() string
- func (t *ReplicationTaskInfo) GetRunID() string
- func (t *ReplicationTaskInfo) GetTaskID() int64
- func (t *ReplicationTaskInfo) GetTaskType() int
- func (t *ReplicationTaskInfo) GetVersion() int64
- func (t *ReplicationTaskInfo) GetVisibilityTimestamp() time.Time
- func (t *ReplicationTaskInfo) GetWorkflowID() string
- type RequestCancelInfo
- type ResetWorkflowTask
- func (a *ResetWorkflowTask) ByteSize() uint64
- func (a *ResetWorkflowTask) GetTaskCategory() HistoryTaskCategory
- func (a *ResetWorkflowTask) GetTaskKey() HistoryTaskKey
- func (a *ResetWorkflowTask) GetTaskType() int
- func (a *ResetWorkflowTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *ResetWorkflowTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *ResetWorkflowTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type ResponseComparatorContextKey
- type Retryer
- type ShardAlreadyExistError
- type ShardInfo
- type ShardManager
- type ShardManagerOption
- type ShardOwnershipLostError
- type ShardStore
- type SignalExecutionTask
- func (u *SignalExecutionTask) ByteSize() uint64
- func (u *SignalExecutionTask) GetTaskCategory() HistoryTaskCategory
- func (u *SignalExecutionTask) GetTaskKey() HistoryTaskKey
- func (u *SignalExecutionTask) GetTaskType() int
- func (u *SignalExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *SignalExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *SignalExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type SignalInfo
- type StartChildExecutionTask
- func (u *StartChildExecutionTask) ByteSize() uint64
- func (u *StartChildExecutionTask) GetTaskCategory() HistoryTaskCategory
- func (u *StartChildExecutionTask) GetTaskKey() HistoryTaskKey
- func (u *StartChildExecutionTask) GetTaskType() int
- func (u *StartChildExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *StartChildExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *StartChildExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type SyncActivityTask
- func (a *SyncActivityTask) ByteSize() uint64
- func (a *SyncActivityTask) GetTaskCategory() HistoryTaskCategory
- func (a *SyncActivityTask) GetTaskKey() HistoryTaskKey
- func (a *SyncActivityTask) GetTaskType() int
- func (a *SyncActivityTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (a *SyncActivityTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (a *SyncActivityTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type Task
- type TaskData
- func (a *TaskData) ByteSize() uint64
- func (a *TaskData) GetTaskID() int64
- func (a *TaskData) GetVersion() int64
- func (a *TaskData) GetVisibilityTimestamp() time.Time
- func (a *TaskData) SetTaskID(id int64)
- func (a *TaskData) SetVersion(version int64)
- func (a *TaskData) SetVisibilityTimestamp(timestamp time.Time)
- type TaskInfo
- type TaskKey
- type TaskListInfo
- type TaskListPartition
- type TaskListPartitionConfig
- type TaskManager
- type TaskStore
- type TimeoutError
- type TimerInfo
- type TimerTaskInfo
- func (t *TimerTaskInfo) GetDomainID() string
- func (t *TimerTaskInfo) GetRunID() string
- func (t *TimerTaskInfo) GetTaskID() int64
- func (t *TimerTaskInfo) GetTaskType() int
- func (t *TimerTaskInfo) GetVersion() int64
- func (t *TimerTaskInfo) GetVisibilityTimestamp() time.Time
- func (t *TimerTaskInfo) GetWorkflowID() string
- func (t *TimerTaskInfo) String() string
- func (t *TimerTaskInfo) ToTask() (Task, error)
- type TransactionSizeLimitError
- type TransferTaskInfo
- func (t *TransferTaskInfo) GetDomainID() string
- func (t *TransferTaskInfo) GetRunID() string
- func (t *TransferTaskInfo) GetTargetDomainIDs() map[string]struct{}
- func (t *TransferTaskInfo) GetTaskID() int64
- func (t *TransferTaskInfo) GetTaskType() int
- func (t *TransferTaskInfo) GetVersion() int64
- func (t *TransferTaskInfo) GetVisibilityTimestamp() time.Time
- func (t *TransferTaskInfo) GetWorkflowID() string
- func (t *TransferTaskInfo) String() string
- func (t *TransferTaskInfo) ToTask() (Task, error)
- type UnknownEncodingTypeError
- type UpdateDomainRequest
- type UpdateDynamicConfigRequest
- type UpdateShardRequest
- type UpdateTaskListRequest
- type UpdateTaskListResponse
- type UpdateWorkflowExecutionRequest
- type UpdateWorkflowExecutionResponse
- type UpdateWorkflowMode
- type UpsertWorkflowExecutionRequest
- type UpsertWorkflowSearchAttributesTask
- func (u *UpsertWorkflowSearchAttributesTask) ByteSize() uint64
- func (u *UpsertWorkflowSearchAttributesTask) GetTaskCategory() HistoryTaskCategory
- func (u *UpsertWorkflowSearchAttributesTask) GetTaskKey() HistoryTaskKey
- func (u *UpsertWorkflowSearchAttributesTask) GetTaskType() int
- func (u *UpsertWorkflowSearchAttributesTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *UpsertWorkflowSearchAttributesTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *UpsertWorkflowSearchAttributesTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type UserTimerTask
- func (u *UserTimerTask) ByteSize() uint64
- func (u *UserTimerTask) GetTaskCategory() HistoryTaskCategory
- func (u *UserTimerTask) GetTaskKey() HistoryTaskKey
- func (u *UserTimerTask) GetTaskType() int
- func (u *UserTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *UserTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *UserTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type VersionHistories
- func (h *VersionHistories) AddVersionHistory(v *VersionHistory) (bool, int, error)
- func (h *VersionHistories) Duplicate() *VersionHistories
- func (h *VersionHistories) FindFirstVersionHistoryByItem(item *VersionHistoryItem) (index int, history *VersionHistory, err error)
- func (h *VersionHistories) FindLCAVersionHistoryIndexAndItem(incomingHistory *VersionHistory) (int, *VersionHistoryItem, error)
- func (h *VersionHistories) GetCurrentVersionHistory() (*VersionHistory, error)
- func (h *VersionHistories) GetCurrentVersionHistoryIndex() int
- func (h *VersionHistories) GetVersionHistory(branchIndex int) (*VersionHistory, error)
- func (h *VersionHistories) IsRebuilt() (bool, error)
- func (h *VersionHistories) SetCurrentVersionHistoryIndex(index int) error
- func (h *VersionHistories) ToInternalType() *types.VersionHistories
- type VersionHistory
- func (v *VersionHistory) AddOrUpdateItem(item *VersionHistoryItem) error
- func (v *VersionHistory) ContainsItem(item *VersionHistoryItem) bool
- func (v *VersionHistory) Duplicate() *VersionHistory
- func (v *VersionHistory) DuplicateUntilLCAItem(lcaItem *VersionHistoryItem) (*VersionHistory, error)
- func (v *VersionHistory) Equals(input *VersionHistory) bool
- func (v *VersionHistory) FindLCAItem(remote *VersionHistory) (*VersionHistoryItem, error)
- func (v *VersionHistory) GetBranchToken() []byte
- func (v *VersionHistory) GetEventVersion(eventID int64) (int64, error)
- func (v *VersionHistory) GetFirstItem() (*VersionHistoryItem, error)
- func (v *VersionHistory) GetLastItem() (*VersionHistoryItem, error)
- func (v *VersionHistory) IsEmpty() bool
- func (v *VersionHistory) IsLCAAppendable(item *VersionHistoryItem) bool
- func (v *VersionHistory) SetBranchToken(inputToken []byte) error
- func (v *VersionHistory) ToInternalType() *types.VersionHistory
- type VersionHistoryItem
- type VisibilityAdminDeletionKey
- type VisibilityDeleteWorkflowExecutionRequest
- type VisibilityManager
- type VisibilityStore
- type WorkflowBackoffTimerTask
- func (r *WorkflowBackoffTimerTask) ByteSize() uint64
- func (r *WorkflowBackoffTimerTask) GetTaskCategory() HistoryTaskCategory
- func (r *WorkflowBackoffTimerTask) GetTaskKey() HistoryTaskKey
- func (r *WorkflowBackoffTimerTask) GetTaskType() int
- func (r *WorkflowBackoffTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (r *WorkflowBackoffTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (r *WorkflowBackoffTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
- type WorkflowEvents
- type WorkflowExecutionAlreadyStartedError
- type WorkflowExecutionInfo
- func (e *WorkflowExecutionInfo) CopyMemo() map[string][]byte
- func (e *WorkflowExecutionInfo) CopyPartitionConfig() map[string]string
- func (e *WorkflowExecutionInfo) CopySearchAttributes() map[string][]byte
- func (e *WorkflowExecutionInfo) IncreaseNextEventID()
- func (e *WorkflowExecutionInfo) IsRunning() bool
- func (e *WorkflowExecutionInfo) SetLastFirstEventID(id int64)
- func (e *WorkflowExecutionInfo) SetNextEventID(id int64)
- func (e *WorkflowExecutionInfo) UpdateWorkflowStateCloseStatus(state int, closeStatus int) error
- type WorkflowIdentifier
- type WorkflowMutableState
- type WorkflowMutation
- type WorkflowRequest
- type WorkflowRequestType
- type WorkflowSnapshot
- type WorkflowTimeoutTask
- func (u *WorkflowTimeoutTask) ByteSize() uint64
- func (u *WorkflowTimeoutTask) GetTaskCategory() HistoryTaskCategory
- func (u *WorkflowTimeoutTask) GetTaskKey() HistoryTaskKey
- func (u *WorkflowTimeoutTask) GetTaskType() int
- func (u *WorkflowTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
- func (u *WorkflowTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
- func (u *WorkflowTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
Constants ¶
const ( DomainStatusRegistered = iota DomainStatusDeprecated DomainStatusDeleted )
Domain status
const ( WorkflowStateCreated = iota WorkflowStateRunning WorkflowStateCompleted WorkflowStateZombie WorkflowStateVoid WorkflowStateCorrupted )
Workflow execution states
const ( WorkflowCloseStatusNone = iota WorkflowCloseStatusCompleted WorkflowCloseStatusFailed WorkflowCloseStatusCanceled WorkflowCloseStatusTerminated WorkflowCloseStatusContinuedAsNew WorkflowCloseStatusTimedOut )
Workflow execution close status
const ( TaskListTypeDecision = iota TaskListTypeActivity )
Types of task lists
const ( TaskListKindNormal = iota TaskListKindSticky TaskListKindEphemeral )
Kinds of task lists
const ( HistoryTaskCategoryTypeImmediate = iota + 1 HistoryTaskCategoryTypeScheduled )
const ( HistoryTaskCategoryIDTransfer = 1 HistoryTaskCategoryIDTimer = 2 HistoryTaskCategoryIDReplication = 3 )
const ( TransferTaskTypeDecisionTask = iota TransferTaskTypeActivityTask TransferTaskTypeCloseExecution TransferTaskTypeCancelExecution TransferTaskTypeStartChildExecution TransferTaskTypeSignalExecution TransferTaskTypeRecordWorkflowStarted TransferTaskTypeResetWorkflow TransferTaskTypeUpsertWorkflowSearchAttributes TransferTaskTypeRecordWorkflowClosed TransferTaskTypeRecordChildExecutionCompleted TransferTaskTypeApplyParentClosePolicy // Deprecated: this is related to cross-cluster tasks )
Transfer task types
const ( ReplicationTaskTypeHistory = iota ReplicationTaskTypeSyncActivity ReplicationTaskTypeFailoverMarker )
Types of replication tasks
const ( TaskTypeDecisionTimeout = iota TaskTypeActivityTimeout TaskTypeUserTimer TaskTypeWorkflowTimeout TaskTypeDeleteHistoryEvent TaskTypeActivityRetryTimer TaskTypeWorkflowBackoffTimer )
Types of timers
const ( WorkflowBackoffTimeoutTypeRetry = iota WorkflowBackoffTimeoutTypeCron )
Types of workflow backoff timeout
const ( // InitialFailoverNotificationVersion is the initial failover version for a domain InitialFailoverNotificationVersion int64 = 0 // TransferTaskTransferTargetWorkflowID is the dummy workflow ID for transfer tasks of types // that do not have a target workflow TransferTaskTransferTargetWorkflowID = "20000000-0000-f000-f000-000000000001" // TransferTaskTransferTargetRunID is the dummy run ID for transfer tasks of types // that do not have a target workflow TransferTaskTransferTargetRunID = "30000000-0000-f000-f000-000000000002" )
const (
ContextKey = ResponseComparatorContextKey("visibility-override")
)
const DBTimestampMinPrecision = time.Millisecond
const ( // EventStoreVersion is already deprecated, this is used for forward // compatibility (so that rollback is possible). // TODO we can remove it after fixing all the query templates and when // we decide the compatibility is no longer needed. EventStoreVersion = 2 )
const UnknownNumRowsAffected = -1
UnknownNumRowsAffected is returned when the number of rows that an API affected cannot be determined
const VisibilityEncoding = constants.EncodingTypeThriftRW
VisibilityEncoding is default encoding for visibility data
Variables ¶
var ( HistoryTaskCategoryTransfer = HistoryTaskCategory{ // contains filtered or unexported fields } HistoryTaskCategoryTimer = HistoryTaskCategory{ // contains filtered or unexported fields } HistoryTaskCategoryReplication = HistoryTaskCategory{ // contains filtered or unexported fields } )
var (
ErrCorruptedHistory = &types.InternalDataInconsistencyError{Message: "corrupted history event batch, eventID is not continuous"}
)
var ErrVisibilityOperationNotSupported = &types.BadRequestError{Message: "Operation is not supported"}
ErrVisibilityOperationNotSupported is an error which indicates that operation is not supported in selected persistence
var ( MaximumHistoryTaskKey = HistoryTaskKey{ // contains filtered or unexported fields } )
var Operation = struct { LIST OperationType COUNT OperationType }{ LIST: "list", COUNT: "count", }
Functions ¶
func BuildHistoryGarbageCleanupInfo ¶ added in v0.9.3
BuildHistoryGarbageCleanupInfo combine the workflow identity information into a string
func DBTimestampToUnixNano ¶ added in v0.4.0
DBTimestampToUnixNano converts Milliseconds timestamp to UnixNano
func FromDataBlob ¶ added in v0.4.0
FromDataBlob decodes a datablob into a (payload, encodingType) tuple
func FromInternalWorkflowExecutionCloseStatus ¶ added in v0.21.0
func FromInternalWorkflowExecutionCloseStatus( closeStatus *types.WorkflowExecutionCloseStatus, ) int
FromInternalWorkflowExecutionCloseStatus convert internal representation of close status to persistence representation
func HasMoreRowsToDelete ¶ added in v0.23.1
HasMoreRowsToDelete checks if there is more data need to be deleted
func IsBackgroundTransientError ¶ added in v0.23.1
IsBackgroundTransientError checks if the error is a transient error on background jobs
func IsNopUpsertWorkflowRequest ¶ added in v0.11.0
func IsNopUpsertWorkflowRequest(request *InternalUpsertWorkflowExecutionRequest) bool
IsNopUpsertWorkflowRequest return whether upsert request should be no-op
func IsTaskCorrupted ¶ added in v1.3.2
func IsTimeoutError ¶ added in v0.5.7
IsTimeoutError check whether error is TimeoutError
func IsTransientError ¶ added in v0.20.0
IsTransientError checks if the error is a transient persistence error
func NewHistoryBranchToken ¶ added in v0.5.0
NewHistoryBranchToken return a new branch token
func NewHistoryBranchTokenByBranchID ¶ added in v0.9.3
NewHistoryBranchTokenByBranchID return a new branch token with treeID/branchID
func NewHistoryBranchTokenFromAnother ¶ added in v0.5.2
NewHistoryBranchTokenFromAnother make up a branchToken
func NewUnknownEncodingTypeError ¶
func NewUnknownEncodingTypeError(encodingType constants.EncodingType) error
NewUnknownEncodingTypeError returns a new instance of encoding type error
func SerializeClusterConfigs ¶ added in v0.4.0
func SerializeClusterConfigs(replicationConfigs []*ClusterReplicationConfig) []map[string]interface{}
SerializeClusterConfigs makes an array of *ClusterReplicationConfig serializable by flattening them into map[string]interface{}
func SplitHistoryGarbageCleanupInfo ¶ added in v0.9.3
SplitHistoryGarbageCleanupInfo returns workflow identity information
func TaskListKindHasTTL ¶ added in v1.3.3
func ToInternalWorkflowExecutionCloseStatus ¶ added in v0.18.0
func ToInternalWorkflowExecutionCloseStatus( closeStatus int, ) *types.WorkflowExecutionCloseStatus
ToInternalWorkflowExecutionCloseStatus convert persistence representation of close status to internal representation
func UnixNanoToDBTimestamp ¶ added in v0.4.0
UnixNanoToDBTimestamp converts UnixNano to Milliseconds timestamp
func ValidateConflictResolveWorkflowModeState ¶ added in v0.9.3
func ValidateConflictResolveWorkflowModeState( mode ConflictResolveWorkflowMode, resetWorkflowSnapshot InternalWorkflowSnapshot, newWorkflowSnapshot *InternalWorkflowSnapshot, currentWorkflowMutation *InternalWorkflowMutation, ) error
ValidateConflictResolveWorkflowModeState validate workflow conflict resolve mode & workflow state
func ValidateCreateWorkflowModeState ¶ added in v0.9.3
func ValidateCreateWorkflowModeState( mode CreateWorkflowMode, newWorkflowSnapshot InternalWorkflowSnapshot, ) error
ValidateCreateWorkflowModeState validate workflow creation mode & workflow state
func ValidateCreateWorkflowStateCloseStatus ¶ added in v0.5.9
ValidateCreateWorkflowStateCloseStatus validate workflow state and close status
func ValidateUpdateWorkflowModeState ¶ added in v0.9.3
func ValidateUpdateWorkflowModeState( mode UpdateWorkflowMode, currentWorkflowMutation InternalWorkflowMutation, newWorkflowSnapshot *InternalWorkflowSnapshot, ) error
ValidateUpdateWorkflowModeState validate workflow update mode & workflow state
func ValidateUpdateWorkflowStateCloseStatus ¶ added in v0.5.9
ValidateUpdateWorkflowStateCloseStatus validate workflow state and close status
Types ¶
type ActivityInfo ¶
type ActivityInfo struct {
Version int64
ScheduleID int64
ScheduledEventBatchID int64
ScheduledEvent *types.HistoryEvent
ScheduledTime time.Time
StartedID int64
StartedEvent *types.HistoryEvent
StartedTime time.Time
DomainID string
ActivityID string
RequestID string
Details []byte
ScheduleToStartTimeout int32
ScheduleToCloseTimeout int32
StartToCloseTimeout int32
HeartbeatTimeout int32
CancelRequested bool
CancelRequestID int64
LastHeartBeatUpdatedTime time.Time
TimerTaskStatus int32
// For retry
Attempt int32
StartedIdentity string
TaskList string
TaskListKind types.TaskListKind
HasRetryPolicy bool
InitialInterval int32
BackoffCoefficient float64
MaximumInterval int32
ExpirationTime time.Time
MaximumAttempts int32
NonRetriableErrors []string
LastFailureReason string
LastWorkerIdentity string
LastFailureDetails []byte
// Not written to database - This is used only for deduping heartbeat timer creation
LastHeartbeatTimeoutVisibilityInSeconds int64
}
ActivityInfo details.
type ActivityRetryTimerTask ¶ added in v0.4.0
type ActivityRetryTimerTask struct {
WorkflowIdentifier
TaskData
EventID int64
Attempt int64
}
ActivityRetryTimerTask to schedule a retry task for activity
func (*ActivityRetryTimerTask) ByteSize ¶ added in v1.3.0
func (r *ActivityRetryTimerTask) ByteSize() uint64
func (*ActivityRetryTimerTask) GetTaskCategory ¶ added in v1.3.0
func (r *ActivityRetryTimerTask) GetTaskCategory() HistoryTaskCategory
func (*ActivityRetryTimerTask) GetTaskKey ¶ added in v1.3.1
func (r *ActivityRetryTimerTask) GetTaskKey() HistoryTaskKey
func (*ActivityRetryTimerTask) GetTaskType ¶ added in v1.2.18
func (r *ActivityRetryTimerTask) GetTaskType() int
GetType returns the type of the retry timer task
func (*ActivityRetryTimerTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (r *ActivityRetryTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*ActivityRetryTimerTask) ToTimerTaskInfo ¶ added in v1.2.18
func (r *ActivityRetryTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*ActivityRetryTimerTask) ToTransferTaskInfo ¶ added in v1.2.18
func (r *ActivityRetryTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type ActivityTask ¶
type ActivityTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TaskList string
ScheduleID int64
}
ActivityTask identifies a transfer task for activity
func (*ActivityTask) ByteSize ¶ added in v1.3.0
func (a *ActivityTask) ByteSize() uint64
func (*ActivityTask) GetTaskCategory ¶ added in v1.3.0
func (a *ActivityTask) GetTaskCategory() HistoryTaskCategory
func (*ActivityTask) GetTaskKey ¶ added in v1.3.1
func (a *ActivityTask) GetTaskKey() HistoryTaskKey
func (*ActivityTask) GetTaskType ¶ added in v1.2.18
func (a *ActivityTask) GetTaskType() int
GetType returns the type of the activity task
func (*ActivityTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *ActivityTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*ActivityTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *ActivityTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*ActivityTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *ActivityTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type ActivityTimeoutTask ¶
type ActivityTimeoutTask struct {
WorkflowIdentifier
TaskData
TimeoutType int
EventID int64
Attempt int64
}
ActivityTimeoutTask identifies a timeout task.
func (*ActivityTimeoutTask) ByteSize ¶ added in v1.3.0
func (a *ActivityTimeoutTask) ByteSize() uint64
func (*ActivityTimeoutTask) GetTaskCategory ¶ added in v1.3.0
func (a *ActivityTimeoutTask) GetTaskCategory() HistoryTaskCategory
func (*ActivityTimeoutTask) GetTaskKey ¶ added in v1.3.1
func (a *ActivityTimeoutTask) GetTaskKey() HistoryTaskKey
func (*ActivityTimeoutTask) GetTaskType ¶ added in v1.2.18
func (a *ActivityTimeoutTask) GetTaskType() int
GetType returns the type of the timer task
func (*ActivityTimeoutTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *ActivityTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*ActivityTimeoutTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *ActivityTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*ActivityTimeoutTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *ActivityTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type AppendHistoryNodesRequest ¶ added in v0.5.0
type AppendHistoryNodesRequest struct {
// true if this is the first append request to the branch
IsNewBranch bool
// the info for clean up data in background
Info string
// The branch to be appended
BranchToken []byte
// The batch of events to be appended. The first eventID will become the nodeID of this batch
Events []*types.HistoryEvent
// requested TransactionID for this write operation. For the same eventID, the node with larger TransactionID always wins
TransactionID int64
// optional binary encoding type
Encoding constants.EncodingType
// The shard to get history node data
ShardID *int
// DomainName to get metrics created with the domain
DomainName string
}
AppendHistoryNodesRequest is used to append a batch of history nodes
func (AppendHistoryNodesRequest) MetricTags ¶ added in v1.2.7
func (r AppendHistoryNodesRequest) MetricTags() []metrics.Tag
type AppendHistoryNodesResponse ¶ added in v0.5.0
type AppendHistoryNodesResponse struct {
// The data blob that was persisted to database
DataBlob DataBlob
}
AppendHistoryNodesResponse is a response to AppendHistoryNodesRequest
type CadenceDeserializationError ¶ added in v0.5.7
type CadenceDeserializationError struct {
// contains filtered or unexported fields
}
CadenceDeserializationError is an error type for cadence deserialization
func NewCadenceDeserializationError ¶ added in v0.5.7
func NewCadenceDeserializationError(msg string) *CadenceDeserializationError
NewCadenceDeserializationError returns a CadenceDeserializationError
func (*CadenceDeserializationError) Error ¶ added in v0.5.7
func (e *CadenceDeserializationError) Error() string
type CadenceSerializationError ¶ added in v0.5.7
type CadenceSerializationError struct {
// contains filtered or unexported fields
}
CadenceSerializationError is an error type for cadence serialization
func NewCadenceSerializationError ¶ added in v0.5.7
func NewCadenceSerializationError(msg string) *CadenceSerializationError
NewCadenceSerializationError returns a CadenceSerializationError
func (*CadenceSerializationError) Error ¶ added in v0.5.7
func (e *CadenceSerializationError) Error() string
type CancelExecutionTask ¶
type CancelExecutionTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TargetWorkflowID string
TargetRunID string
TargetChildWorkflowOnly bool
InitiatedID int64
}
CancelExecutionTask identifies a transfer task for cancel of execution
func (*CancelExecutionTask) ByteSize ¶ added in v1.3.0
func (u *CancelExecutionTask) ByteSize() uint64
func (*CancelExecutionTask) GetTaskCategory ¶ added in v1.3.0
func (u *CancelExecutionTask) GetTaskCategory() HistoryTaskCategory
func (*CancelExecutionTask) GetTaskKey ¶ added in v1.3.1
func (u *CancelExecutionTask) GetTaskKey() HistoryTaskKey
func (*CancelExecutionTask) GetTaskType ¶ added in v1.2.18
func (u *CancelExecutionTask) GetTaskType() int
GetType returns the type of the cancel transfer task
func (*CancelExecutionTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *CancelExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*CancelExecutionTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *CancelExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*CancelExecutionTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *CancelExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type ChildExecutionInfo ¶
type ChildExecutionInfo struct {
Version int64
InitiatedID int64
InitiatedEventBatchID int64
InitiatedEvent *types.HistoryEvent
StartedID int64
StartedWorkflowID string
StartedRunID string
StartedEvent *types.HistoryEvent
CreateRequestID string
DomainID string
DomainNameDEPRECATED string // deprecated: please use DomainID field instead
WorkflowTypeName string
ParentClosePolicy types.ParentClosePolicy
}
ChildExecutionInfo has details for pending child executions.
type CloseExecutionTask ¶ added in v0.3.3
type CloseExecutionTask struct {
WorkflowIdentifier
TaskData
}
CloseExecutionTask identifies a transfer task for deletion of execution
func (*CloseExecutionTask) ByteSize ¶ added in v1.3.0
func (a *CloseExecutionTask) ByteSize() uint64
func (*CloseExecutionTask) GetTaskCategory ¶ added in v1.3.0
func (a *CloseExecutionTask) GetTaskCategory() HistoryTaskCategory
func (*CloseExecutionTask) GetTaskKey ¶ added in v1.3.1
func (a *CloseExecutionTask) GetTaskKey() HistoryTaskKey
func (*CloseExecutionTask) GetTaskType ¶ added in v1.2.18
func (a *CloseExecutionTask) GetTaskType() int
GetType returns the type of the close execution task
func (*CloseExecutionTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *CloseExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*CloseExecutionTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *CloseExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*CloseExecutionTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *CloseExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type Closeable ¶
type Closeable interface {
Close()
}
Closeable is an interface for any entity that supports a close operation to release resources
type ClusterReplicationConfig ¶ added in v0.3.7
type ClusterReplicationConfig struct {
ClusterName string
}
ClusterReplicationConfig describes the cross DC cluster replication configuration
func DeserializeClusterConfigs ¶ added in v0.4.0
func DeserializeClusterConfigs(replicationConfigs []map[string]interface{}) []*ClusterReplicationConfig
DeserializeClusterConfigs creates an array of ClusterReplicationConfigs from an array of map representations
func (*ClusterReplicationConfig) GetCopy ¶ added in v0.12.0
func (config *ClusterReplicationConfig) GetCopy() *ClusterReplicationConfig
GetCopy return a copy of ClusterReplicationConfig
type CompleteForkBranchRequest ¶ added in v0.5.2
type CompleteForkBranchRequest struct {
// the new branch returned from ForkHistoryBranchRequest
BranchToken []byte
// true means the fork is success, will update the flag, otherwise will delete the new branch
Success bool
// The shard to update history branch data
ShardID *int
}
CompleteForkBranchRequest is used to complete forking
type CompleteHistoryTaskRequest ¶ added in v1.3.0
type CompleteHistoryTaskRequest struct {
TaskCategory HistoryTaskCategory
TaskKey HistoryTaskKey
}
CompleteHistoryTaskRequest is used to complete a history task
func (CompleteHistoryTaskRequest) MetricTags ¶ added in v1.3.0
func (r CompleteHistoryTaskRequest) MetricTags() []metrics.Tag
type CompleteTaskRequest ¶
type CompleteTaskRequest struct {
TaskList *TaskListInfo
TaskID int64
DomainName string
}
CompleteTaskRequest is used to complete a task
func (CompleteTaskRequest) MetricTags ¶ added in v1.2.7
func (r CompleteTaskRequest) MetricTags() []metrics.Tag
type CompleteTasksLessThanRequest ¶ added in v0.5.4
type CompleteTasksLessThanRequest struct {
DomainID string
TaskListName string
TaskType int
TaskID int64 // Tasks less than or equal to this ID will be completed
Limit int // Limit on the max number of tasks that can be completed. Required param
DomainName string
}
CompleteTasksLessThanRequest contains the request params needed to invoke CompleteTasksLessThan API
func (CompleteTasksLessThanRequest) MetricTags ¶ added in v1.2.7
func (r CompleteTasksLessThanRequest) MetricTags() []metrics.Tag
type CompleteTasksLessThanResponse ¶ added in v0.23.1
type CompleteTasksLessThanResponse struct {
TasksCompleted int
}
CompleteTasksLessThanResponse is the response of CompleteTasksLessThan
type ConditionFailedError ¶
type ConditionFailedError struct {
Msg string
}
ConditionFailedError represents a failed conditional update for execution record
func (*ConditionFailedError) Error ¶
func (e *ConditionFailedError) Error() string
type ConfigStore ¶ added in v0.23.1
type ConfigStore interface {
Closeable
FetchConfig(ctx context.Context, configType ConfigType) (*InternalConfigStoreEntry, error)
UpdateConfig(ctx context.Context, value *InternalConfigStoreEntry) error
}
type ConfigStoreManager ¶ added in v0.23.1
type ConfigStoreManager interface {
Closeable
FetchDynamicConfig(ctx context.Context, cfgType ConfigType) (*FetchDynamicConfigResponse, error)
UpdateDynamicConfig(ctx context.Context, request *UpdateDynamicConfigRequest, cfgType ConfigType) error
}
func NewConfigStoreManagerImpl ¶ added in v0.23.1
func NewConfigStoreManagerImpl(persistence ConfigStore, logger log.Logger) ConfigStoreManager
NewConfigStoreManagerImpl returns new ConfigStoreManager
type ConfigType ¶ added in v0.23.1
type ConfigType int
const ( DynamicConfig ConfigType = iota GlobalIsolationGroupConfig )
type ConflictResolveWorkflowExecutionRequest ¶ added in v0.7.0
type ConflictResolveWorkflowExecutionRequest struct {
RangeID int64
Mode ConflictResolveWorkflowMode
// workflow to be reset
ResetWorkflowSnapshot WorkflowSnapshot
// maybe new workflow
NewWorkflowSnapshot *WorkflowSnapshot
// current workflow
CurrentWorkflowMutation *WorkflowMutation
WorkflowRequestMode CreateWorkflowRequestMode
Encoding constants.EncodingType // optional binary encoding type
DomainName string
}
ConflictResolveWorkflowExecutionRequest is used to reset workflow execution state for a single run
func (ConflictResolveWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r ConflictResolveWorkflowExecutionRequest) GetDomainName() string
type ConflictResolveWorkflowExecutionResponse ¶ added in v0.21.0
type ConflictResolveWorkflowExecutionResponse struct {
MutableStateUpdateSessionStats *MutableStateUpdateSessionStats
}
ConflictResolveWorkflowExecutionResponse is response for ConflictResolveWorkflowExecutionRequest
type ConflictResolveWorkflowMode ¶ added in v0.9.3
type ConflictResolveWorkflowMode int
ConflictResolveWorkflowMode conflict resolve mode
const ( // ConflictResolveWorkflowModeUpdateCurrent Conflict resolve workflow, including current record // NOTE: update on current record is a condition update ConflictResolveWorkflowModeUpdateCurrent ConflictResolveWorkflowMode = iota // ConflictResolveWorkflowModeBypassCurrent Conflict resolve workflow, without current record // NOTE: current record CANNOT point to the workflow to be updated ConflictResolveWorkflowModeBypassCurrent )
Conflict Resolve Workflow Mode
type CountWorkflowExecutionsRequest ¶ added in v0.5.8
type CountWorkflowExecutionsRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
Query string
}
CountWorkflowExecutionsRequest is request from CountWorkflowExecutions
type CountWorkflowExecutionsResponse ¶ added in v0.5.8
type CountWorkflowExecutionsResponse struct {
Count int64
}
CountWorkflowExecutionsResponse is response to CountWorkflowExecutions
type CreateDomainRequest ¶
type CreateDomainRequest struct {
Info *DomainInfo
Config *DomainConfig
ReplicationConfig *DomainReplicationConfig
IsGlobalDomain bool
ConfigVersion int64
FailoverVersion int64
LastUpdatedTime int64
CurrentTimeStamp time.Time
}
CreateDomainRequest is used to create the domain
type CreateDomainResponse ¶
type CreateDomainResponse struct {
ID string
}
CreateDomainResponse is the response for CreateDomain
type CreateFailoverMarkersRequest ¶ added in v0.14.0
type CreateFailoverMarkersRequest struct {
RangeID int64
Markers []*FailoverMarkerTask
CurrentTimeStamp time.Time
}
CreateFailoverMarkersRequest is request to create failover markers
type CreateShardRequest ¶
type CreateShardRequest struct {
ShardInfo *ShardInfo
}
CreateShardRequest is used to create a shard in executions table
type CreateTaskInfo ¶
CreateTaskInfo describes a task to be created in CreateTasksRequest
type CreateTasksRequest ¶
type CreateTasksRequest struct {
TaskListInfo *TaskListInfo
Tasks []*CreateTaskInfo
DomainName string
CurrentTimeStamp time.Time
}
CreateTasksRequest is used to create a new task for a workflow execution
func (CreateTasksRequest) MetricTags ¶ added in v1.2.7
func (r CreateTasksRequest) MetricTags() []metrics.Tag
type CreateTasksResponse ¶
type CreateTasksResponse struct {
}
CreateTasksResponse is the response to CreateTasksRequest
type CreateWorkflowExecutionRequest ¶
type CreateWorkflowExecutionRequest struct {
RangeID int64
Mode CreateWorkflowMode
PreviousRunID string
PreviousLastWriteVersion int64
NewWorkflowSnapshot WorkflowSnapshot
WorkflowRequestMode CreateWorkflowRequestMode
DomainName string
}
CreateWorkflowExecutionRequest is used to write a new workflow execution
func (*CreateWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r *CreateWorkflowExecutionRequest) GetDomainName() string
func (*CreateWorkflowExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r *CreateWorkflowExecutionRequest) GetExtraLogTags() []tag.Tag
type CreateWorkflowExecutionResponse ¶
type CreateWorkflowExecutionResponse struct {
MutableStateUpdateSessionStats *MutableStateUpdateSessionStats
}
CreateWorkflowExecutionResponse is the response to CreateWorkflowExecutionRequest
type CreateWorkflowMode ¶ added in v0.9.3
type CreateWorkflowMode int
CreateWorkflowMode workflow creation mode
const ( // CreateWorkflowModeBrandNew Fail if current record exists // Only applicable for CreateWorkflowExecution CreateWorkflowModeBrandNew CreateWorkflowMode = iota // CreateWorkflowModeWorkflowIDReuse Update current record only if workflow is closed // Only applicable for CreateWorkflowExecution CreateWorkflowModeWorkflowIDReuse // CreateWorkflowModeContinueAsNew Update current record only if workflow is open // Only applicable for UpdateWorkflowExecution CreateWorkflowModeContinueAsNew // CreateWorkflowModeZombie Do not update current record since workflow to // applicable for CreateWorkflowExecution, UpdateWorkflowExecution CreateWorkflowModeZombie )
Create Workflow Execution Mode
type CreateWorkflowRequestMode ¶ added in v1.2.9
type CreateWorkflowRequestMode int
CreateWorkflowRequestMode is the mode of create workflow request
const ( // CreateWorkflowRequestModeNew Fail if data with the same domain_id, workflow_id, request_id exists // It is used for transactions started by external API requests // to allow us detecting duplicate requests CreateWorkflowRequestModeNew CreateWorkflowRequestMode = iota // CreateWorkflowRequestModeReplicated Upsert the data without checking duplication // It is used for transactions started by replication stack to achieve // eventual consistency CreateWorkflowRequestModeReplicated )
Modes of create workflow request
type CrossClusterTaskInfo ¶ added in v0.22.0
type CrossClusterTaskInfo = TransferTaskInfo
CrossClusterTaskInfo describes a cross-cluster task Cross cluster tasks are exactly like transfer tasks so instead of creating another struct and duplicating the same logic everywhere. We reuse TransferTaskInfo This is a deprecated feature as of May 24
type CurrentWorkflowConditionFailedError ¶ added in v0.4.0
type CurrentWorkflowConditionFailedError struct {
Msg string
}
CurrentWorkflowConditionFailedError represents a failed conditional update for current workflow record
func (*CurrentWorkflowConditionFailedError) Error ¶ added in v0.4.0
func (e *CurrentWorkflowConditionFailedError) Error() string
type CurrentWorkflowExecution ¶ added in v0.14.0
type CurrentWorkflowExecution struct {
DomainID string
WorkflowID string
RunID string
State int
CurrentRunID string
}
CurrentWorkflowExecution describes a current execution record
func (*CurrentWorkflowExecution) ByteSize ¶ added in v1.3.0
func (r *CurrentWorkflowExecution) ByteSize() uint64
type DBUnavailableError ¶ added in v0.25.0
type DBUnavailableError struct {
}
DBUnavailableError is returned when the database is unavailable, could be for various reasons.
func (*DBUnavailableError) Error ¶ added in v0.25.0
func (e *DBUnavailableError) Error() string
type DataBlob ¶ added in v0.4.0
type DataBlob struct {
Encoding constants.EncodingType
Data []byte
}
DataBlob represents a blob for any binary data. It contains raw data, and metadata(right now only encoding) in other field Note that it should be only used for Persistence layer, below dataInterface and application(historyEngine/etc)
func NewDataBlob ¶ added in v0.4.0
func NewDataBlob(data []byte, encodingType constants.EncodingType) *DataBlob
NewDataBlob returns a new DataBlob
func NewDataBlobFromInternal ¶ added in v0.18.0
NewDataBlobFromInternal convert data blob from internal representation
func (*DataBlob) GetEncoding ¶ added in v0.4.0
func (d *DataBlob) GetEncoding() constants.EncodingType
GetEncoding returns encoding type
func (*DataBlob) GetEncodingString ¶ added in v0.22.0
func (*DataBlob) ToInternal ¶ added in v0.18.0
ToInternal convert data blob to internal representation
func (*DataBlob) ToNilSafeDataBlob ¶ added in v0.22.0
Convert a *Datablob to safe that calling its method won't run into NPE
type DecisionTask ¶
type DecisionTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TaskList string
ScheduleID int64
}
DecisionTask identifies a transfer task for decision
func (*DecisionTask) ByteSize ¶ added in v1.3.0
func (d *DecisionTask) ByteSize() uint64
func (*DecisionTask) GetTaskCategory ¶ added in v1.3.0
func (d *DecisionTask) GetTaskCategory() HistoryTaskCategory
func (*DecisionTask) GetTaskKey ¶ added in v1.3.1
func (d *DecisionTask) GetTaskKey() HistoryTaskKey
func (*DecisionTask) GetTaskType ¶ added in v1.2.18
func (d *DecisionTask) GetTaskType() int
GetType returns the type of the decision task
func (*DecisionTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (d *DecisionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*DecisionTask) ToTimerTaskInfo ¶ added in v1.2.18
func (d *DecisionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*DecisionTask) ToTransferTaskInfo ¶ added in v1.2.18
func (d *DecisionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type DecisionTimeoutTask ¶
type DecisionTimeoutTask struct {
WorkflowIdentifier
TaskData
EventID int64
ScheduleAttempt int64
TimeoutType int
}
DecisionTimeoutTask identifies a timeout task.
func (*DecisionTimeoutTask) ByteSize ¶ added in v1.3.0
func (d *DecisionTimeoutTask) ByteSize() uint64
func (*DecisionTimeoutTask) GetTaskCategory ¶ added in v1.3.0
func (d *DecisionTimeoutTask) GetTaskCategory() HistoryTaskCategory
func (*DecisionTimeoutTask) GetTaskKey ¶ added in v1.3.1
func (d *DecisionTimeoutTask) GetTaskKey() HistoryTaskKey
func (*DecisionTimeoutTask) GetTaskType ¶ added in v1.2.18
func (d *DecisionTimeoutTask) GetTaskType() int
GetType returns the type of the timer task
func (*DecisionTimeoutTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (d *DecisionTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*DecisionTimeoutTask) ToTimerTaskInfo ¶ added in v1.2.18
func (d *DecisionTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*DecisionTimeoutTask) ToTransferTaskInfo ¶ added in v1.2.18
func (d *DecisionTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type DeleteCurrentWorkflowExecutionRequest ¶ added in v0.5.8
type DeleteCurrentWorkflowExecutionRequest struct {
DomainID string
WorkflowID string
RunID string
DomainName string
}
DeleteCurrentWorkflowExecutionRequest is used to delete the current workflow execution
func (DeleteCurrentWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r DeleteCurrentWorkflowExecutionRequest) GetDomainName() string
func (DeleteCurrentWorkflowExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r DeleteCurrentWorkflowExecutionRequest) GetExtraLogTags() []tag.Tag
type DeleteDomainByNameRequest ¶
type DeleteDomainByNameRequest struct {
Name string
}
DeleteDomainByNameRequest is used to delete domain entry from domains_by_name table
type DeleteDomainRequest ¶
type DeleteDomainRequest struct {
ID string
}
DeleteDomainRequest is used to delete domain entry from domains table
type DeleteHistoryBranchRequest ¶ added in v0.5.0
type DeleteHistoryBranchRequest struct {
// branch to be deleted
BranchToken []byte
// The shard to delete history branch data
ShardID *int
// DomainName to generate metrics for Domain Cost Attribution
DomainName string
}
DeleteHistoryBranchRequest is used to remove a history branch
func (DeleteHistoryBranchRequest) MetricTags ¶ added in v1.2.7
func (r DeleteHistoryBranchRequest) MetricTags() []metrics.Tag
type DeleteHistoryEventTask ¶
type DeleteHistoryEventTask struct {
WorkflowIdentifier
TaskData
}
DeleteHistoryEventTask identifies a timer task for deletion of history events of completed execution.
func (*DeleteHistoryEventTask) ByteSize ¶ added in v1.3.0
func (a *DeleteHistoryEventTask) ByteSize() uint64
func (*DeleteHistoryEventTask) GetTaskCategory ¶ added in v1.3.0
func (a *DeleteHistoryEventTask) GetTaskCategory() HistoryTaskCategory
func (*DeleteHistoryEventTask) GetTaskKey ¶ added in v1.3.1
func (a *DeleteHistoryEventTask) GetTaskKey() HistoryTaskKey
func (*DeleteHistoryEventTask) GetTaskType ¶ added in v1.2.18
func (a *DeleteHistoryEventTask) GetTaskType() int
GetType returns the type of the delete execution task
func (*DeleteHistoryEventTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *DeleteHistoryEventTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*DeleteHistoryEventTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *DeleteHistoryEventTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*DeleteHistoryEventTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *DeleteHistoryEventTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type DeleteReplicationTaskFromDLQRequest ¶ added in v0.12.0
DeleteReplicationTaskFromDLQRequest is used to delete replication task from DLQ
type DeleteTaskListRequest ¶ added in v0.5.4
type DeleteTaskListRequest struct {
DomainID string
DomainName string
TaskListName string
TaskListType int
RangeID int64
}
DeleteTaskListRequest contains the request params needed to invoke DeleteTaskList API
func (DeleteTaskListRequest) MetricTags ¶ added in v1.2.7
func (r DeleteTaskListRequest) MetricTags() []metrics.Tag
type DeleteWorkflowExecutionRequest ¶
type DeleteWorkflowExecutionRequest struct {
DomainID string
WorkflowID string
RunID string
DomainName string
}
DeleteWorkflowExecutionRequest is used to delete a workflow execution
func (DeleteWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r DeleteWorkflowExecutionRequest) GetDomainName() string
func (DeleteWorkflowExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r DeleteWorkflowExecutionRequest) GetExtraLogTags() []tag.Tag
type DomainConfig ¶
type DomainConfig struct {
// NOTE: this retention is in days, not in seconds
Retention int32
EmitMetric bool
HistoryArchivalStatus types.ArchivalStatus
HistoryArchivalURI string
VisibilityArchivalStatus types.ArchivalStatus
VisibilityArchivalURI string
BadBinaries types.BadBinaries
IsolationGroups types.IsolationGroupConfiguration
AsyncWorkflowConfig types.AsyncWorkflowConfiguration
}
DomainConfig describes the domain configuration
func (*DomainConfig) ByteSize ¶ added in v1.3.0
func (c *DomainConfig) ByteSize() uint64
type DomainInfo ¶
type DomainInfo struct {
ID string
Name string
Status int
Description string
OwnerEmail string
Data map[string]string
}
DomainInfo describes the domain entity
func (*DomainInfo) ByteSize ¶ added in v1.3.0
func (i *DomainInfo) ByteSize() uint64
type DomainManager ¶ added in v0.22.0
type DomainManager interface {
Closeable
GetName() string
CreateDomain(ctx context.Context, request *CreateDomainRequest) (*CreateDomainResponse, error)
GetDomain(ctx context.Context, request *GetDomainRequest) (*GetDomainResponse, error)
UpdateDomain(ctx context.Context, request *UpdateDomainRequest) error
DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
ListDomains(ctx context.Context, request *ListDomainsRequest) (*ListDomainsResponse, error)
GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
}
DomainManager is used to manage metadata CRUD for domain entities
func NewDomainManagerImpl ¶ added in v0.22.0
func NewDomainManagerImpl(persistence DomainStore, logger log.Logger, serializer PayloadSerializer) DomainManager
NewDomainManagerImpl returns new DomainManager
type DomainReplicationConfig ¶ added in v0.3.7
type DomainReplicationConfig struct {
Clusters []*ClusterReplicationConfig
// ActiveClusterName is the name of the cluster that the domain is active in.
// Applicable for active-passive domains.
ActiveClusterName string
// ActiveClusters is only applicable for active-active domains.
// If this is set, ActiveClusterName is ignored.
ActiveClusters *types.ActiveClusters
}
DomainReplicationConfig describes the cross DC domain replication configuration
func (*DomainReplicationConfig) ByteSize ¶ added in v1.3.0
func (c *DomainReplicationConfig) ByteSize() uint64
func (*DomainReplicationConfig) IsActiveActive ¶ added in v1.3.0
func (c *DomainReplicationConfig) IsActiveActive() bool
IsActiveActive TODO(active-active): Update unit tests of all components that use this function to cover active-active case
type DomainStore ¶ added in v0.23.1
type DomainStore interface {
Closeable
GetName() string
CreateDomain(ctx context.Context, request *InternalCreateDomainRequest) (*CreateDomainResponse, error)
GetDomain(ctx context.Context, request *GetDomainRequest) (*InternalGetDomainResponse, error)
UpdateDomain(ctx context.Context, request *InternalUpdateDomainRequest) error
DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
ListDomains(ctx context.Context, request *ListDomainsRequest) (*InternalListDomainsResponse, error)
GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
}
DomainStore is a lower level of DomainManager
type DuplicateRequestError ¶ added in v1.2.9
type DuplicateRequestError struct {
RequestType WorkflowRequestType
RunID string
}
func AsDuplicateRequestError ¶ added in v1.2.10
func AsDuplicateRequestError(err error) (*DuplicateRequestError, bool)
func (*DuplicateRequestError) Error ¶ added in v1.2.9
func (e *DuplicateRequestError) Error() string
type DynamicConfigSnapshot ¶ added in v0.23.1
type DynamicConfigSnapshot struct {
Version int64
Values *types.DynamicConfigBlob
}
type DynamicConfiguration ¶ added in v0.25.0
type DynamicConfiguration struct {
EnableSQLAsyncTransaction dynamicproperties.BoolPropertyFn
EnableCassandraAllConsistencyLevelDelete dynamicproperties.BoolPropertyFn
PersistenceSampleLoggingRate dynamicproperties.IntPropertyFn
EnableShardIDMetrics dynamicproperties.BoolPropertyFn
EnableHistoryTaskDualWriteMode dynamicproperties.BoolPropertyFn
ReadNoSQLHistoryTaskFromDataBlob dynamicproperties.BoolPropertyFn
ReadNoSQLShardFromDataBlob dynamicproperties.BoolPropertyFn
SerializationEncoding dynamicproperties.StringPropertyFn
}
DynamicConfiguration represents dynamic configuration for persistence layer
func NewDynamicConfiguration ¶ added in v0.25.0
func NewDynamicConfiguration(dc *dynamicconfig.Collection) *DynamicConfiguration
NewDynamicConfiguration returns new config with default values
type ExecutionManager ¶
type ExecutionManager interface {
Closeable
GetName() string
GetShardID() int
CreateWorkflowExecution(ctx context.Context, request *CreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
GetWorkflowExecution(ctx context.Context, request *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
UpdateWorkflowExecution(ctx context.Context, request *UpdateWorkflowExecutionRequest) (*UpdateWorkflowExecutionResponse, error)
ConflictResolveWorkflowExecution(ctx context.Context, request *ConflictResolveWorkflowExecutionRequest) (*ConflictResolveWorkflowExecutionResponse, error)
DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
PutReplicationTaskToDLQ(ctx context.Context, request *PutReplicationTaskToDLQRequest) error
GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*types.ActiveClusterSelectionPolicy, error)
DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, workflowID, runID string) error
}
ExecutionManager is used to manage workflow executions
func NewExecutionManagerImpl ¶ added in v0.4.0
func NewExecutionManagerImpl( persistence ExecutionStore, logger log.Logger, serializer PayloadSerializer, ) ExecutionManager
NewExecutionManagerImpl returns new ExecutionManager
type ExecutionManagerFactory ¶
type ExecutionManagerFactory interface {
Closeable
NewExecutionManager(shardID int) (ExecutionManager, error)
}
ExecutionManagerFactory creates an instance of ExecutionManager for a given shard
type ExecutionStats ¶ added in v0.7.0
type ExecutionStats struct {
HistorySize int64
}
ExecutionStats is the statistics about workflow execution
type ExecutionStore ¶ added in v0.4.0
type ExecutionStore interface {
Closeable
GetName() string
GetShardID() int
// The below three APIs are related to serialization/deserialization
GetWorkflowExecution(ctx context.Context, request *InternalGetWorkflowExecutionRequest) (*InternalGetWorkflowExecutionResponse, error)
UpdateWorkflowExecution(ctx context.Context, request *InternalUpdateWorkflowExecutionRequest) error
ConflictResolveWorkflowExecution(ctx context.Context, request *InternalConflictResolveWorkflowExecutionRequest) error
CreateWorkflowExecution(ctx context.Context, request *InternalCreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
// Replication task related methods
PutReplicationTaskToDLQ(ctx context.Context, request *InternalPutReplicationTaskToDLQRequest) error
GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
// History task related methods
GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
// Scan related methods
ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*InternalListConcreteExecutionsResponse, error)
ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
// Active cluster selection policy related methods
GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*DataBlob, error)
DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) error
}
ExecutionStore is used to manage workflow executions for Persistence layer
type FailoverLevel ¶ added in v1.3.1
type FailoverLevel struct {
StartTime time.Time
MinLevel HistoryTaskKey
CurrentLevel HistoryTaskKey
MaxLevel HistoryTaskKey
DomainIDs map[string]struct{}
}
FailoverLevel contains corresponding start / end level
type FailoverMarkerTask ¶ added in v0.13.0
FailoverMarkerTask is the marker for graceful failover
func (*FailoverMarkerTask) ByteSize ¶ added in v1.3.0
func (a *FailoverMarkerTask) ByteSize() uint64
func (*FailoverMarkerTask) GetDomainID ¶ added in v1.2.18
func (a *FailoverMarkerTask) GetDomainID() string
func (*FailoverMarkerTask) GetRunID ¶ added in v1.2.18
func (a *FailoverMarkerTask) GetRunID() string
func (*FailoverMarkerTask) GetTaskCategory ¶ added in v1.3.0
func (a *FailoverMarkerTask) GetTaskCategory() HistoryTaskCategory
func (*FailoverMarkerTask) GetTaskKey ¶ added in v1.3.1
func (a *FailoverMarkerTask) GetTaskKey() HistoryTaskKey
func (*FailoverMarkerTask) GetTaskType ¶ added in v1.2.18
func (a *FailoverMarkerTask) GetTaskType() int
GetType returns the type of the history replication task
func (*FailoverMarkerTask) GetWorkflowID ¶ added in v1.2.18
func (a *FailoverMarkerTask) GetWorkflowID() string
func (*FailoverMarkerTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *FailoverMarkerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*FailoverMarkerTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *FailoverMarkerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*FailoverMarkerTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *FailoverMarkerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type FetchDynamicConfigResponse ¶ added in v0.23.1
type FetchDynamicConfigResponse struct {
Snapshot *DynamicConfigSnapshot
}
FetchDynamicConfigResponse is a response to FetchDynamicConfigResponse
type ForkHistoryBranchRequest ¶ added in v0.5.0
type ForkHistoryBranchRequest struct {
// The base branch to fork from
ForkBranchToken []byte
// The nodeID to fork from, the new branch will start from ( inclusive ), the base branch will stop at(exclusive)
// Application must provide a void forking nodeID, it must be a valid nodeID in that branch. A valid nodeID is the firstEventID of a valid batch of events.
// And ForkNodeID > 1 because forking from 1 doesn't make any sense.
ForkNodeID int64
// the info for clean up data in background
Info string
// The shard to get history branch data
ShardID *int
// DomainName to create metrics for Domain Cost Attribution
DomainName string
}
ForkHistoryBranchRequest is used to fork a history branch
func (ForkHistoryBranchRequest) MetricTags ¶ added in v1.2.7
func (r ForkHistoryBranchRequest) MetricTags() []metrics.Tag
type ForkHistoryBranchResponse ¶ added in v0.5.0
type ForkHistoryBranchResponse struct {
// branchToken to represent the new branch
NewBranchToken []byte
}
ForkHistoryBranchResponse is the response to ForkHistoryBranchRequest
type GetAllHistoryTreeBranchesRequest ¶ added in v0.9.0
type GetAllHistoryTreeBranchesRequest struct {
// pagination token
NextPageToken []byte
// maximum number of branches returned per page
PageSize int
}
GetAllHistoryTreeBranchesRequest is a request of GetAllHistoryTreeBranches
type GetAllHistoryTreeBranchesResponse ¶ added in v0.9.0
type GetAllHistoryTreeBranchesResponse struct {
// pagination token
NextPageToken []byte
// all branches of all trees
Branches []HistoryBranchDetail
}
GetAllHistoryTreeBranchesResponse is a response to GetAllHistoryTreeBranches
func (GetAllHistoryTreeBranchesResponse) ByteSize ¶ added in v1.3.0
func (r GetAllHistoryTreeBranchesResponse) ByteSize() uint64
func (GetAllHistoryTreeBranchesResponse) Len ¶ added in v1.2.7
func (r GetAllHistoryTreeBranchesResponse) Len() int
type GetClosedWorkflowExecutionRequest ¶
type GetClosedWorkflowExecutionRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
Execution types.WorkflowExecution
}
GetClosedWorkflowExecutionRequest is used retrieve the record for a specific execution
type GetClosedWorkflowExecutionResponse ¶
type GetClosedWorkflowExecutionResponse struct {
Execution *types.WorkflowExecutionInfo
}
GetClosedWorkflowExecutionResponse is the response to GetClosedWorkflowExecutionRequest
type GetCurrentExecutionRequest ¶
GetCurrentExecutionRequest is used to retrieve the current RunId for an execution
func (GetCurrentExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r GetCurrentExecutionRequest) GetDomainName() string
func (GetCurrentExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r GetCurrentExecutionRequest) GetExtraLogTags() []tag.Tag
type GetCurrentExecutionResponse ¶
type GetCurrentExecutionResponse struct {
StartRequestID string
RunID string
State int
CloseStatus int
LastWriteVersion int64
}
GetCurrentExecutionResponse is the response to GetCurrentExecution
type GetDomainRequest ¶
GetDomainRequest is used to read domain
type GetDomainResponse ¶
type GetDomainResponse struct {
Info *DomainInfo
Config *DomainConfig
ReplicationConfig *DomainReplicationConfig
IsGlobalDomain bool
ConfigVersion int64
FailoverVersion int64
FailoverNotificationVersion int64
PreviousFailoverVersion int64
FailoverEndTime *int64
LastUpdatedTime int64
NotificationVersion int64
}
GetDomainResponse is the response for GetDomain
func (*GetDomainResponse) ByteSize ¶ added in v1.3.0
func (r *GetDomainResponse) ByteSize() uint64
type GetHistoryTasksRequest ¶ added in v1.2.18
type GetHistoryTasksRequest struct {
TaskCategory HistoryTaskCategory
InclusiveMinTaskKey HistoryTaskKey
ExclusiveMaxTaskKey HistoryTaskKey
PageSize int
NextPageToken []byte
}
GetHistoryTasksRequest is used to get history tasks
func (GetHistoryTasksRequest) MetricTags ¶ added in v1.3.0
func (r GetHistoryTasksRequest) MetricTags() []metrics.Tag
type GetHistoryTasksResponse ¶ added in v1.2.18
GetHistoryTasksResponse is the response for GetHistoryTasks
func (*GetHistoryTasksResponse) ByteSize ¶ added in v1.3.0
func (r *GetHistoryTasksResponse) ByteSize() uint64
func (*GetHistoryTasksResponse) Len ¶ added in v1.2.18
func (r *GetHistoryTasksResponse) Len() int
type GetHistoryTreeRequest ¶ added in v0.5.0
type GetHistoryTreeRequest struct {
// A UUID of a tree
TreeID string
// Get data from this shard
ShardID *int
// optional: can provide treeID via branchToken if treeID is empty
BranchToken []byte
// DomainName to create metrics
DomainName string
}
GetHistoryTreeRequest is used to retrieve branch info of a history tree
func (GetHistoryTreeRequest) MetricTags ¶ added in v1.2.7
func (r GetHistoryTreeRequest) MetricTags() []metrics.Tag
type GetHistoryTreeResponse ¶ added in v0.5.0
type GetHistoryTreeResponse struct {
// all branches of a tree
Branches []*workflow.HistoryBranch
}
GetHistoryTreeResponse is a response to GetHistoryTreeRequest
type GetMetadataResponse ¶ added in v0.3.13
type GetMetadataResponse struct {
NotificationVersion int64
}
GetMetadataResponse is the response for GetMetadata
type GetOrphanTasksRequest ¶ added in v0.21.0
type GetOrphanTasksRequest struct {
Limit int
}
GetOrphanTasksRequest contains the request params need to invoke the GetOrphanTasks API
type GetOrphanTasksResponse ¶ added in v0.21.0
type GetOrphanTasksResponse struct {
Tasks []*TaskKey
}
GetOrphanTasksResponse is the response to GetOrphanTasksRequests
type GetReplicationDLQSizeRequest ¶ added in v0.14.0
type GetReplicationDLQSizeRequest struct {
SourceClusterName string
}
GetReplicationDLQSizeRequest is used to get one replication task from dlq
type GetReplicationDLQSizeResponse ¶ added in v0.14.0
type GetReplicationDLQSizeResponse struct {
Size int64
}
GetReplicationDLQSizeResponse is the response for GetReplicationDLQSize
type GetReplicationTasksFromDLQRequest ¶ added in v0.11.0
type GetReplicationTasksFromDLQRequest struct {
SourceClusterName string
ReadLevel int64
MaxReadLevel int64
BatchSize int
NextPageToken []byte
}
GetReplicationTasksFromDLQRequest is used to get replication tasks from dlq
func NewGetReplicationTasksFromDLQRequest ¶ added in v0.11.0
func NewGetReplicationTasksFromDLQRequest( sourceClusterName string, readLevel int64, maxReadLevel int64, batchSize int, nextPageToken []byte, ) *GetReplicationTasksFromDLQRequest
NewGetReplicationTasksFromDLQRequest creates a new GetReplicationTasksFromDLQRequest
type GetShardRequest ¶
type GetShardRequest struct {
ShardID int
}
GetShardRequest is used to get shard information
type GetShardResponse ¶
type GetShardResponse struct {
ShardInfo *ShardInfo
}
GetShardResponse is the response to GetShard
type GetTaskListRequest ¶ added in v1.2.15
type GetTaskListResponse ¶ added in v1.2.15
type GetTaskListResponse struct {
TaskListInfo *TaskListInfo
}
type GetTaskListSizeRequest ¶ added in v1.2.6
type GetTaskListSizeRequest struct {
DomainID string
DomainName string
TaskListName string
TaskListType int
AckLevel int64
}
func (GetTaskListSizeRequest) MetricTags ¶ added in v1.2.10
func (r GetTaskListSizeRequest) MetricTags() []metrics.Tag
type GetTaskListSizeResponse ¶ added in v1.2.6
type GetTaskListSizeResponse struct {
Size int64
}
type GetTasksRequest ¶
type GetTasksRequest struct {
DomainID string
TaskList string
TaskType int
ReadLevel int64 // range exclusive
MaxReadLevel *int64 // optional: range inclusive when specified
BatchSize int
DomainName string
}
GetTasksRequest is used to retrieve tasks of a task list
func (GetTasksRequest) MetricTags ¶ added in v1.2.7
func (r GetTasksRequest) MetricTags() []metrics.Tag
type GetTasksResponse ¶
type GetTasksResponse struct {
Tasks []*TaskInfo
}
GetTasksResponse is the response to GetTasksRequests
func (*GetTasksResponse) ByteSize ¶ added in v1.3.0
func (r *GetTasksResponse) ByteSize() uint64
func (*GetTasksResponse) Len ¶ added in v1.2.7
func (r *GetTasksResponse) Len() int
type GetWorkflowExecutionRequest ¶
type GetWorkflowExecutionRequest struct {
DomainID string
Execution types.WorkflowExecution
DomainName string
RangeID int64
}
GetWorkflowExecutionRequest is used to retrieve the info of a workflow execution
func (GetWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r GetWorkflowExecutionRequest) GetDomainName() string
func (GetWorkflowExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r GetWorkflowExecutionRequest) GetExtraLogTags() []tag.Tag
type GetWorkflowExecutionResponse ¶
type GetWorkflowExecutionResponse struct {
State *WorkflowMutableState
MutableStateStats *MutableStateStats
}
GetWorkflowExecutionResponse is the response to GetWorkflowExecutionRequest
type HistoryBranchDetail ¶ added in v0.9.0
HistoryBranchDetail contains detailed information of a branch
func (HistoryBranchDetail) ByteSize ¶ added in v1.3.0
func (r HistoryBranchDetail) ByteSize() uint64
type HistoryManager ¶
type HistoryManager interface {
Closeable
GetName() string
// AppendHistoryNodes add(or override) a batch of nodes to a history branch
AppendHistoryNodes(ctx context.Context, request *AppendHistoryNodesRequest) (*AppendHistoryNodesResponse, error)
// ReadHistoryBranch returns history node data for a branch
ReadHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
// ReadHistoryBranchByBatch returns history node data for a branch ByBatch
ReadHistoryBranchByBatch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchByBatchResponse, error)
// ReadRawHistoryBranch returns history node raw data for a branch ByBatch
// NOTE: this API should only be used by 3+DC
ReadRawHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadRawHistoryBranchResponse, error)
// ForkHistoryBranch forks a new branch from an old branch
ForkHistoryBranch(ctx context.Context, request *ForkHistoryBranchRequest) (*ForkHistoryBranchResponse, error)
// DeleteHistoryBranch removes a branch
// If this is the last branch to delete, it will also remove the root node
DeleteHistoryBranch(ctx context.Context, request *DeleteHistoryBranchRequest) error
// GetHistoryTree returns all branch information of a tree
GetHistoryTree(ctx context.Context, request *GetHistoryTreeRequest) (*GetHistoryTreeResponse, error)
// GetAllHistoryTreeBranches returns all branches of all trees
GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
}
HistoryManager is used to manager workflow history events
func NewHistoryV2ManagerImpl ¶ added in v0.5.0
func NewHistoryV2ManagerImpl( persistence HistoryStore, logger log.Logger, historySerializer PayloadSerializer, binaryEncoder codec.BinaryEncoder, transactionSizeLimit dynamicproperties.IntPropertyFn, ) HistoryManager
NewHistoryV2ManagerImpl returns new HistoryManager
type HistoryReplicationTask ¶ added in v0.3.11
type HistoryReplicationTask struct {
WorkflowIdentifier
TaskData
FirstEventID int64
NextEventID int64
BranchToken []byte
NewRunBranchToken []byte
}
HistoryReplicationTask is the replication task created for shipping history replication events to other clusters
func (*HistoryReplicationTask) ByteSize ¶ added in v1.3.0
func (a *HistoryReplicationTask) ByteSize() uint64
func (*HistoryReplicationTask) GetTaskCategory ¶ added in v1.3.0
func (a *HistoryReplicationTask) GetTaskCategory() HistoryTaskCategory
func (*HistoryReplicationTask) GetTaskKey ¶ added in v1.3.1
func (a *HistoryReplicationTask) GetTaskKey() HistoryTaskKey
func (*HistoryReplicationTask) GetTaskType ¶ added in v1.2.18
func (a *HistoryReplicationTask) GetTaskType() int
GetType returns the type of the history replication task
func (*HistoryReplicationTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *HistoryReplicationTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*HistoryReplicationTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *HistoryReplicationTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*HistoryReplicationTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *HistoryReplicationTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type HistoryStore ¶ added in v0.4.0
type HistoryStore interface {
Closeable
GetName() string
// AppendHistoryNodes add(or override) a node to a history branch
AppendHistoryNodes(ctx context.Context, request *InternalAppendHistoryNodesRequest) error
// ReadHistoryBranch returns history node data for a branch
ReadHistoryBranch(ctx context.Context, request *InternalReadHistoryBranchRequest) (*InternalReadHistoryBranchResponse, error)
// ForkHistoryBranch forks a new branch from a old branch
ForkHistoryBranch(ctx context.Context, request *InternalForkHistoryBranchRequest) (*InternalForkHistoryBranchResponse, error)
// DeleteHistoryBranch removes a branch
DeleteHistoryBranch(ctx context.Context, request *InternalDeleteHistoryBranchRequest) error
// GetHistoryTree returns all branch information of a tree
GetHistoryTree(ctx context.Context, request *InternalGetHistoryTreeRequest) (*InternalGetHistoryTreeResponse, error)
// GetAllHistoryTreeBranches returns all branches of all trees
GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
}
HistoryStore is to manager workflow history events
type HistoryTaskCategory ¶ added in v1.2.17
type HistoryTaskCategory struct {
// contains filtered or unexported fields
}
HistoryTaskCategory represents various categories of history tasks
func (HistoryTaskCategory) ID ¶ added in v1.2.17
func (c HistoryTaskCategory) ID() int
func (HistoryTaskCategory) Name ¶ added in v1.3.0
func (c HistoryTaskCategory) Name() string
func (HistoryTaskCategory) Type ¶ added in v1.2.17
func (c HistoryTaskCategory) Type() int
type HistoryTaskKey ¶ added in v1.2.18
type HistoryTaskKey struct {
// contains filtered or unexported fields
}
func MaxHistoryTaskKey ¶ added in v1.3.1
func MaxHistoryTaskKey(a, b HistoryTaskKey) HistoryTaskKey
func MinHistoryTaskKey ¶ added in v1.3.1
func MinHistoryTaskKey(a, b HistoryTaskKey) HistoryTaskKey
func NewHistoryTaskKey ¶ added in v1.3.1
func NewHistoryTaskKey(scheduledTime time.Time, taskID int64) HistoryTaskKey
func NewImmediateTaskKey ¶ added in v1.3.1
func NewImmediateTaskKey(taskID int64) HistoryTaskKey
func (HistoryTaskKey) Compare ¶ added in v1.3.1
func (a HistoryTaskKey) Compare(b HistoryTaskKey) int
func (HistoryTaskKey) GetScheduledTime ¶ added in v1.3.1
func (a HistoryTaskKey) GetScheduledTime() time.Time
func (HistoryTaskKey) GetTaskID ¶ added in v1.3.1
func (a HistoryTaskKey) GetTaskID() int64
func (HistoryTaskKey) MarshalJSON ¶ added in v1.3.1
func (a HistoryTaskKey) MarshalJSON() ([]byte, error)
func (HistoryTaskKey) Next ¶ added in v1.3.2
func (a HistoryTaskKey) Next() HistoryTaskKey
type InternalActivityInfo ¶ added in v0.4.0
type InternalActivityInfo struct {
Version int64
ScheduleID int64
ScheduledEventBatchID int64
ScheduledEvent *DataBlob
ScheduledTime time.Time
StartedID int64
StartedEvent *DataBlob
StartedTime time.Time
ActivityID string
RequestID string
Details []byte
ScheduleToStartTimeout time.Duration
ScheduleToCloseTimeout time.Duration
StartToCloseTimeout time.Duration
HeartbeatTimeout time.Duration
CancelRequested bool
CancelRequestID int64
LastHeartBeatUpdatedTime time.Time
TimerTaskStatus int32
// For retry
Attempt int32
DomainID string
StartedIdentity string
TaskList string
TaskListKind types.TaskListKind
HasRetryPolicy bool
InitialInterval time.Duration
BackoffCoefficient float64
MaximumInterval time.Duration
ExpirationTime time.Time
MaximumAttempts int32
NonRetriableErrors []string
LastFailureReason string
LastWorkerIdentity string
LastFailureDetails []byte
// Not written to database - This is used only for deduping heartbeat timer creation
LastHeartbeatTimeoutVisibilityInSeconds int64
}
InternalActivityInfo details for Persistence Interface
type InternalAppendHistoryEventsRequest ¶ added in v0.4.0
type InternalAppendHistoryEventsRequest struct {
DomainID string
Execution workflow.WorkflowExecution
FirstEventID int64
EventBatchVersion int64
RangeID int64
TransactionID int64
Events *DataBlob
Overwrite bool
}
InternalAppendHistoryEventsRequest is used to append new events to workflow execution history for Persistence Interface
type InternalAppendHistoryNodesRequest ¶ added in v0.5.0
type InternalAppendHistoryNodesRequest struct {
// True if it is the first append request to the branch
IsNewBranch bool
// The info for clean up data in background
Info string
// The branch to be appended
BranchInfo types.HistoryBranch
// The first eventID becomes the nodeID to be appended
NodeID int64
// The events to be appended
Events *DataBlob
// Requested TransactionID for conditional update
TransactionID int64
// Used in sharded data stores to identify which shard to use
ShardID int
CurrentTimeStamp time.Time
}
InternalAppendHistoryNodesRequest is used to append a batch of history nodes
type InternalChildExecutionInfo ¶ added in v0.4.0
type InternalChildExecutionInfo struct {
Version int64
InitiatedID int64
InitiatedEventBatchID int64
InitiatedEvent *DataBlob
StartedID int64
StartedWorkflowID string
StartedRunID string
StartedEvent *DataBlob
CreateRequestID string
DomainID string
DomainNameDEPRECATED string // deprecated: use DomainID field
WorkflowTypeName string
ParentClosePolicy types.ParentClosePolicy
}
InternalChildExecutionInfo has details for pending child executions for Persistence Interface
type InternalCompleteForkBranchRequest ¶ added in v0.5.2
type InternalCompleteForkBranchRequest struct {
// branch to be updated
BranchInfo workflow.HistoryBranch
// whether fork is successful
Success bool
// Used in sharded data stores to identify which shard to use
ShardID int
}
InternalCompleteForkBranchRequest is used to update some tree/branch meta data for forking
type InternalConfigStoreEntry ¶ added in v0.23.1
type InternalConflictResolveWorkflowExecutionRequest ¶ added in v0.7.0
type InternalConflictResolveWorkflowExecutionRequest struct {
RangeID int64
Mode ConflictResolveWorkflowMode
// workflow to be resetted
ResetWorkflowSnapshot InternalWorkflowSnapshot
// maybe new workflow
NewWorkflowSnapshot *InternalWorkflowSnapshot
// current workflow
CurrentWorkflowMutation *InternalWorkflowMutation
WorkflowRequestMode CreateWorkflowRequestMode
CurrentTimeStamp time.Time
}
InternalConflictResolveWorkflowExecutionRequest is used to reset workflow execution state for Persistence Interface
type InternalCreateDomainRequest ¶ added in v0.5.8
type InternalCreateDomainRequest struct {
Info *DomainInfo
Config *InternalDomainConfig
ReplicationConfig *InternalDomainReplicationConfig
IsGlobalDomain bool
ConfigVersion int64
FailoverVersion int64
LastUpdatedTime time.Time
CurrentTimeStamp time.Time
}
InternalCreateDomainRequest is used to create the domain
type InternalCreateShardRequest ¶ added in v0.16.0
type InternalCreateShardRequest struct {
ShardInfo *InternalShardInfo
CurrentTimeStamp time.Time
}
InternalCreateShardRequest is request to CreateShard
type InternalCreateWorkflowExecutionRequest ¶ added in v0.5.7
type InternalCreateWorkflowExecutionRequest struct {
RangeID int64
Mode CreateWorkflowMode
PreviousRunID string
PreviousLastWriteVersion int64
NewWorkflowSnapshot InternalWorkflowSnapshot
WorkflowRequestMode CreateWorkflowRequestMode
CurrentTimeStamp time.Time
}
InternalCreateWorkflowExecutionRequest is used to write a new workflow execution
type InternalDeleteHistoryBranchRequest ¶ added in v0.5.0
type InternalDeleteHistoryBranchRequest struct {
// branch to be deleted
BranchInfo types.HistoryBranch
// Used in sharded data stores to identify which shard to use
ShardID int
}
InternalDeleteHistoryBranchRequest is used to remove a history branch
type InternalDomainConfig ¶ added in v0.5.8
type InternalDomainConfig struct {
Retention time.Duration
EmitMetric bool // deprecated
ArchivalBucket string // deprecated
ArchivalStatus types.ArchivalStatus // deprecated
HistoryArchivalStatus types.ArchivalStatus
HistoryArchivalURI string
VisibilityArchivalStatus types.ArchivalStatus
VisibilityArchivalURI string
BadBinaries *DataBlob
IsolationGroups *DataBlob
AsyncWorkflowsConfig *DataBlob
}
InternalDomainConfig describes the domain configuration
type InternalDomainReplicationConfig ¶ added in v1.3.1
type InternalDomainReplicationConfig struct {
Clusters []*ClusterReplicationConfig
ActiveClusterName string
ActiveClustersConfig *DataBlob
}
type InternalForkHistoryBranchRequest ¶ added in v0.5.0
type InternalForkHistoryBranchRequest struct {
// The base branch to fork from
ForkBranchInfo types.HistoryBranch
// The nodeID to fork from, the new branch will start from ( inclusive ), the base branch will stop at(exclusive)
ForkNodeID int64
// branchID of the new branch
NewBranchID string
// the info for clean up data in background
Info string
// Used in sharded data stores to identify which shard to use
ShardID int
CurrentTimeStamp time.Time
}
InternalForkHistoryBranchRequest is used to fork a history branch
type InternalForkHistoryBranchResponse ¶ added in v0.5.0
type InternalForkHistoryBranchResponse struct {
// branchInfo to represent the new branch
NewBranchInfo types.HistoryBranch
}
InternalForkHistoryBranchResponse is the response to ForkHistoryBranchRequest
type InternalGetClosedWorkflowExecutionRequest ¶ added in v0.16.0
type InternalGetClosedWorkflowExecutionRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
Execution types.WorkflowExecution
}
InternalGetClosedWorkflowExecutionRequest is used retrieve the record for a specific execution
type InternalGetClosedWorkflowExecutionResponse ¶ added in v0.5.7
type InternalGetClosedWorkflowExecutionResponse struct {
Execution *InternalVisibilityWorkflowExecutionInfo
}
InternalGetClosedWorkflowExecutionResponse is response from GetWorkflowExecution
type InternalGetDomainResponse ¶ added in v0.5.8
type InternalGetDomainResponse struct {
Info *DomainInfo
Config *InternalDomainConfig
ReplicationConfig *InternalDomainReplicationConfig
IsGlobalDomain bool
ConfigVersion int64
FailoverVersion int64
FailoverNotificationVersion int64
PreviousFailoverVersion int64
FailoverEndTime *time.Time
LastUpdatedTime time.Time
NotificationVersion int64
}
InternalGetDomainResponse is the response for GetDomain
type InternalGetHistoryTreeRequest ¶ added in v0.16.0
type InternalGetHistoryTreeRequest struct {
// A UUID of a tree
TreeID string
// Get data from this shard
ShardID *int
// optional: can provide treeID via branchToken if treeID is empty
BranchToken []byte
}
InternalGetHistoryTreeRequest is used to get history tree
type InternalGetHistoryTreeResponse ¶ added in v0.16.0
type InternalGetHistoryTreeResponse struct {
// all branches of a tree
Branches []*types.HistoryBranch
}
InternalGetHistoryTreeResponse is the response to GetHistoryTree
func (*InternalGetHistoryTreeResponse) ByBranchID ¶ added in v1.2.18
func (tr *InternalGetHistoryTreeResponse) ByBranchID() map[string]*types.HistoryBranch
type InternalGetShardRequest ¶ added in v0.16.0
type InternalGetShardRequest struct {
ShardID int
}
InternalGetShardRequest is used to get shard information
type InternalGetShardResponse ¶ added in v0.16.0
type InternalGetShardResponse struct {
ShardInfo *InternalShardInfo
}
InternalGetShardResponse is the response to GetShard
type InternalGetWorkflowExecutionRequest ¶ added in v0.16.0
type InternalGetWorkflowExecutionRequest struct {
DomainID string
Execution types.WorkflowExecution
RangeID int64
}
InternalGetWorkflowExecutionRequest is used to retrieve the info of a workflow execution
type InternalGetWorkflowExecutionResponse ¶ added in v0.4.0
type InternalGetWorkflowExecutionResponse struct {
State *InternalWorkflowMutableState
}
InternalGetWorkflowExecutionResponse is the response to GetWorkflowExecution for Persistence Interface
type InternalListClosedWorkflowExecutionsByStatusRequest ¶ added in v0.16.0
type InternalListClosedWorkflowExecutionsByStatusRequest struct {
InternalListWorkflowExecutionsRequest
Status types.WorkflowExecutionCloseStatus
}
InternalListClosedWorkflowExecutionsByStatusRequest is used to list executions that have specific close status
type InternalListConcreteExecutionsEntity ¶ added in v0.13.0
type InternalListConcreteExecutionsEntity struct {
ExecutionInfo *InternalWorkflowExecutionInfo
VersionHistories *DataBlob
}
InternalListConcreteExecutionsEntity is a single entity in InternalListConcreteExecutionsResponse
type InternalListConcreteExecutionsResponse ¶ added in v0.13.0
type InternalListConcreteExecutionsResponse struct {
Executions []*InternalListConcreteExecutionsEntity
NextPageToken []byte
}
InternalListConcreteExecutionsResponse is the response to ListConcreteExecutions for Persistence Interface
type InternalListDomainsResponse ¶ added in v0.5.8
type InternalListDomainsResponse struct {
Domains []*InternalGetDomainResponse
NextPageToken []byte
}
InternalListDomainsResponse is the response for GetDomain
type InternalListWorkflowExecutionsByTypeRequest ¶ added in v0.16.0
type InternalListWorkflowExecutionsByTypeRequest struct {
InternalListWorkflowExecutionsRequest
WorkflowTypeName string
}
InternalListWorkflowExecutionsByTypeRequest is used to list executions of a specific type in a domain
type InternalListWorkflowExecutionsByWorkflowIDRequest ¶ added in v0.16.0
type InternalListWorkflowExecutionsByWorkflowIDRequest struct {
InternalListWorkflowExecutionsRequest
WorkflowID string
}
InternalListWorkflowExecutionsByWorkflowIDRequest is used to list executions that have specific WorkflowID in a domain
type InternalListWorkflowExecutionsRequest ¶ added in v0.16.0
type InternalListWorkflowExecutionsRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
// The earliest end of the time range
EarliestTime time.Time
// The latest end of the time range
LatestTime time.Time
// Maximum number of workflow executions per page
PageSize int
// Token to continue reading next page of workflow executions.
// Pass in empty slice for first page.
NextPageToken []byte
}
InternalListWorkflowExecutionsRequest is used to list executions in a domain
type InternalListWorkflowExecutionsResponse ¶ added in v0.5.7
type InternalListWorkflowExecutionsResponse struct {
Executions []*InternalVisibilityWorkflowExecutionInfo
// Token to read next page if there are more workflow executions beyond page size.
// Use this to set NextPageToken on ListWorkflowExecutionsRequest to read the next page.
NextPageToken []byte
}
InternalListWorkflowExecutionsResponse is response from ListWorkflowExecutions
type InternalPutReplicationTaskToDLQRequest ¶ added in v0.16.0
type InternalPutReplicationTaskToDLQRequest struct {
SourceClusterName string
TaskInfo *InternalReplicationTaskInfo
}
InternalPutReplicationTaskToDLQRequest is used to put a replication task to dlq
type InternalQueueMessage ¶ added in v0.16.0
type InternalQueueMessage struct {
ID int64 `json:"message_id"`
QueueType QueueType `json:"queue_type"`
Payload []byte `json:"message_payload"`
}
InternalQueueMessage is the message that stores in the queue
type InternalReadHistoryBranchRequest ¶ added in v0.5.0
type InternalReadHistoryBranchRequest struct {
// The tree of branch range to be read
TreeID string
// The branch range to be read
BranchID string
// Get the history nodes from MinNodeID. Inclusive.
MinNodeID int64
// Get the history nodes upto MaxNodeID. Exclusive.
MaxNodeID int64
// passing thru for pagination
PageSize int
// Pagination token
NextPageToken []byte
// LastNodeID is the last known node ID attached to a history node
LastNodeID int64
// LastTransactionID is the last known transaction ID attached to a history node
LastTransactionID int64
// Used in sharded data stores to identify which shard to use
ShardID int
}
InternalReadHistoryBranchRequest is used to read a history branch
type InternalReadHistoryBranchResponse ¶ added in v0.5.0
type InternalReadHistoryBranchResponse struct {
// History events
History []*DataBlob
// Pagination token
NextPageToken []byte
// LastNodeID is the last known node ID attached to a history node
LastNodeID int64
// LastTransactionID is the last known transaction ID attached to a history node
LastTransactionID int64
}
InternalReadHistoryBranchResponse is the response to ReadHistoryBranchRequest
type InternalRecordWorkflowExecutionClosedRequest ¶ added in v0.5.7
type InternalRecordWorkflowExecutionClosedRequest struct {
DomainUUID string
WorkflowID string
RunID string
WorkflowTypeName string
StartTimestamp time.Time
ExecutionTimestamp time.Time
TaskID int64
Memo *DataBlob
TaskList string
SearchAttributes map[string][]byte
CloseTimestamp time.Time
Status types.WorkflowExecutionCloseStatus
HistoryLength int64
RetentionPeriod time.Duration
IsCron bool
NumClusters int16
UpdateTimestamp time.Time
ShardID int16
}
InternalRecordWorkflowExecutionClosedRequest is request to RecordWorkflowExecutionClosed
type InternalRecordWorkflowExecutionStartedRequest ¶ added in v0.5.7
type InternalRecordWorkflowExecutionStartedRequest struct {
DomainUUID string
WorkflowID string
RunID string
WorkflowTypeName string
StartTimestamp time.Time
ExecutionTimestamp time.Time
WorkflowTimeout time.Duration
TaskID int64
Memo *DataBlob
TaskList string
IsCron bool
NumClusters int16
UpdateTimestamp time.Time
SearchAttributes map[string][]byte
ShardID int16
}
InternalRecordWorkflowExecutionStartedRequest request to RecordWorkflowExecutionStarted
type InternalRecordWorkflowExecutionUninitializedRequest ¶ added in v0.25.0
type InternalRecordWorkflowExecutionUninitializedRequest struct {
DomainUUID string
WorkflowID string
RunID string
WorkflowTypeName string
UpdateTimestamp time.Time
ShardID int64
}
InternalRecordWorkflowExecutionUninitializedRequest is used to add a record of a newly uninitialized execution
type InternalReplicationTaskInfo ¶ added in v0.16.0
type InternalReplicationTaskInfo struct {
DomainID string
WorkflowID string
RunID string
TaskID int64
TaskType int
FirstEventID int64
NextEventID int64
Version int64
ScheduledID int64
BranchToken []byte
NewRunBranchToken []byte
CreationTime time.Time
CurrentTimeStamp time.Time
}
InternalReplicationTaskInfo describes the replication task created for replication of history events
func (*InternalReplicationTaskInfo) ToTask ¶ added in v1.2.18
func (t *InternalReplicationTaskInfo) ToTask() (Task, error)
type InternalShardInfo ¶ added in v0.16.0
type InternalShardInfo struct {
ShardID int `json:"shard_id"`
Owner string `json:"owner"`
RangeID int64 `json:"range_id"`
StolenSinceRenew int `json:"stolen_since_renew"`
UpdatedAt time.Time `json:"updated_at"`
ReplicationAckLevel int64 `json:"replication_ack_level"`
ReplicationDLQAckLevel map[string]int64 `json:"replication_dlq_ack_level"`
TransferAckLevel int64 `json:"transfer_ack_level"`
TimerAckLevel time.Time `json:"timer_ack_level"`
ClusterTransferAckLevel map[string]int64 `json:"cluster_transfer_ack_level"`
ClusterTimerAckLevel map[string]time.Time `json:"cluster_timer_ack_level"`
TransferProcessingQueueStates *DataBlob `json:"transfer_processing_queue_states"`
TimerProcessingQueueStates *DataBlob `json:"timer_processing_queue_states"`
ClusterReplicationLevel map[string]int64 `json:"cluster_replication_level"`
DomainNotificationVersion int64 `json:"domain_notification_version"`
PendingFailoverMarkers *DataBlob `json:"pending_failover_markers"`
QueueStates map[int32]*types.QueueState `json:"queue_states"`
CurrentTimestamp time.Time
}
InternalShardInfo describes a shard
type InternalUpdateDomainRequest ¶ added in v0.5.8
type InternalUpdateDomainRequest struct {
Info *DomainInfo
Config *InternalDomainConfig
ReplicationConfig *InternalDomainReplicationConfig
ConfigVersion int64
FailoverVersion int64
FailoverNotificationVersion int64
PreviousFailoverVersion int64
FailoverEndTime *time.Time
LastUpdatedTime time.Time
NotificationVersion int64
}
InternalUpdateDomainRequest is used to update domain
type InternalUpdateShardRequest ¶ added in v0.16.0
type InternalUpdateShardRequest struct {
ShardInfo *InternalShardInfo
PreviousRangeID int64
CurrentTimeStamp time.Time
}
InternalUpdateShardRequest is used to update shard information
type InternalUpdateWorkflowExecutionRequest ¶ added in v0.4.0
type InternalUpdateWorkflowExecutionRequest struct {
RangeID int64
Mode UpdateWorkflowMode
UpdateWorkflowMutation InternalWorkflowMutation
NewWorkflowSnapshot *InternalWorkflowSnapshot
WorkflowRequestMode CreateWorkflowRequestMode
CurrentTimeStamp time.Time
}
InternalUpdateWorkflowExecutionRequest is used to update a workflow execution for Persistence Interface
type InternalUpsertWorkflowExecutionRequest ¶ added in v0.6.0
type InternalUpsertWorkflowExecutionRequest struct {
DomainUUID string
WorkflowID string
RunID string
WorkflowTypeName string
StartTimestamp time.Time
ExecutionTimestamp time.Time
WorkflowTimeout time.Duration
TaskID int64
Memo *DataBlob
TaskList string
IsCron bool
NumClusters int16
UpdateTimestamp time.Time
SearchAttributes map[string][]byte
ShardID int64
}
InternalUpsertWorkflowExecutionRequest is request to UpsertWorkflowExecution
type InternalVisibilityWorkflowExecutionInfo ¶ added in v0.16.0
type InternalVisibilityWorkflowExecutionInfo struct {
DomainID string
WorkflowType string
WorkflowID string
RunID string
TypeName string
StartTime time.Time
ExecutionTime time.Time
CloseTime time.Time
Status *types.WorkflowExecutionCloseStatus
HistoryLength int64
Memo *DataBlob
TaskList string
IsCron bool
NumClusters int16
UpdateTime time.Time
SearchAttributes map[string]interface{}
ShardID int16
}
InternalVisibilityWorkflowExecutionInfo is visibility info for internal response
type InternalWorkflowExecutionInfo ¶ added in v0.4.0
type InternalWorkflowExecutionInfo struct {
DomainID string
WorkflowID string
RunID string
FirstExecutionRunID string
ParentDomainID string
ParentWorkflowID string
ParentRunID string
InitiatedID int64
CompletionEventBatchID int64
CompletionEvent *DataBlob
TaskList string
TaskListKind types.TaskListKind
WorkflowTypeName string
WorkflowTimeout time.Duration
DecisionStartToCloseTimeout time.Duration
ExecutionContext []byte
State int
CloseStatus int
LastFirstEventID int64
LastEventTaskID int64
NextEventID int64
LastProcessedEvent int64
StartTimestamp time.Time
LastUpdatedTimestamp time.Time
CreateRequestID string
SignalCount int32
DecisionVersion int64
DecisionScheduleID int64
DecisionStartedID int64
DecisionRequestID string
DecisionTimeout time.Duration
DecisionAttempt int64
DecisionStartedTimestamp time.Time
DecisionScheduledTimestamp time.Time
DecisionOriginalScheduledTimestamp time.Time
CancelRequested bool
CancelRequestID string
StickyTaskList string
StickyScheduleToStartTimeout time.Duration
ClientLibraryVersion string
ClientFeatureVersion string
ClientImpl string
AutoResetPoints *DataBlob
// for retry
Attempt int32
HasRetryPolicy bool
InitialInterval time.Duration
BackoffCoefficient float64
MaximumInterval time.Duration
ExpirationTime time.Time
MaximumAttempts int32
NonRetriableErrors []string
BranchToken []byte
CronSchedule string
CronOverlapPolicy types.CronOverlapPolicy
ExpirationInterval time.Duration
Memo map[string][]byte
SearchAttributes map[string][]byte
PartitionConfig map[string]string
ActiveClusterSelectionPolicy *DataBlob
// attributes which are not related to mutable state at all
HistorySize int64
IsCron bool
}
InternalWorkflowExecutionInfo describes a workflow execution for Persistence Interface
type InternalWorkflowMutableState ¶ added in v0.4.0
type InternalWorkflowMutableState struct {
ExecutionInfo *InternalWorkflowExecutionInfo
VersionHistories *DataBlob
ReplicationState *ReplicationState // TODO: remove this after all 2DC workflows complete
ActivityInfos map[int64]*InternalActivityInfo
TimerInfos map[string]*TimerInfo
ChildExecutionInfos map[int64]*InternalChildExecutionInfo
RequestCancelInfos map[int64]*RequestCancelInfo
SignalInfos map[int64]*SignalInfo
SignalRequestedIDs map[string]struct{}
BufferedEvents []*DataBlob
// Checksum field is used by Cassandra storage
// ChecksumData is used by All SQL storage
Checksum checksum.Checksum
ChecksumData *DataBlob
}
InternalWorkflowMutableState indicates workflow related state for Persistence Interface
type InternalWorkflowMutation ¶ added in v0.6.0
type InternalWorkflowMutation struct {
ExecutionInfo *InternalWorkflowExecutionInfo
VersionHistories *DataBlob
StartVersion int64
LastWriteVersion int64
UpsertActivityInfos []*InternalActivityInfo
DeleteActivityInfos []int64
UpsertTimerInfos []*TimerInfo
DeleteTimerInfos []string
UpsertChildExecutionInfos []*InternalChildExecutionInfo
DeleteChildExecutionInfos []int64
UpsertRequestCancelInfos []*RequestCancelInfo
DeleteRequestCancelInfos []int64
UpsertSignalInfos []*SignalInfo
DeleteSignalInfos []int64
UpsertSignalRequestedIDs []string
DeleteSignalRequestedIDs []string
NewBufferedEvents *DataBlob
ClearBufferedEvents bool
TasksByCategory map[HistoryTaskCategory][]Task
WorkflowRequests []*WorkflowRequest
Condition int64
Checksum checksum.Checksum
ChecksumData *DataBlob
}
InternalWorkflowMutation is used as generic workflow execution state mutation for Persistence Interface
type InternalWorkflowSnapshot ¶ added in v0.6.0
type InternalWorkflowSnapshot struct {
ExecutionInfo *InternalWorkflowExecutionInfo
VersionHistories *DataBlob
StartVersion int64
LastWriteVersion int64
ActivityInfos []*InternalActivityInfo
TimerInfos []*TimerInfo
ChildExecutionInfos []*InternalChildExecutionInfo
RequestCancelInfos []*RequestCancelInfo
SignalInfos []*SignalInfo
SignalRequestedIDs []string
TasksByCategory map[HistoryTaskCategory][]Task
WorkflowRequests []*WorkflowRequest
Condition int64
Checksum checksum.Checksum
ChecksumData *DataBlob
}
InternalWorkflowSnapshot is used as generic workflow execution state snapshot for Persistence Interface
type InvalidPersistenceRequestError ¶ added in v0.5.0
type InvalidPersistenceRequestError struct {
Msg string
}
InvalidPersistenceRequestError represents invalid request to persistence
func (*InvalidPersistenceRequestError) Error ¶ added in v0.5.0
func (e *InvalidPersistenceRequestError) Error() string
type IsWorkflowExecutionExistsRequest ¶ added in v0.14.0
type IsWorkflowExecutionExistsRequest struct {
DomainID string
DomainName string
WorkflowID string
RunID string
}
IsWorkflowExecutionExistsRequest is used to check if the concrete execution exists
func (*IsWorkflowExecutionExistsRequest) GetDomainName ¶ added in v1.2.7
func (r *IsWorkflowExecutionExistsRequest) GetDomainName() string
type IsWorkflowExecutionExistsResponse ¶ added in v0.14.0
type IsWorkflowExecutionExistsResponse struct {
Exists bool
}
IsWorkflowExecutionExistsResponse is the response to IsWorkflowExecutionExists
type LeaseTaskListRequest ¶
type LeaseTaskListRequest struct {
DomainID string
DomainName string
TaskList string
TaskType int
TaskListKind int
RangeID int64
CurrentTimeStamp time.Time
}
LeaseTaskListRequest is used to request lease of a task list
func (LeaseTaskListRequest) MetricTags ¶ added in v1.2.7
func (r LeaseTaskListRequest) MetricTags() []metrics.Tag
type LeaseTaskListResponse ¶
type LeaseTaskListResponse struct {
TaskListInfo *TaskListInfo
}
LeaseTaskListResponse is response to LeaseTaskListRequest
type ListClosedWorkflowExecutionsByStatusRequest ¶
type ListClosedWorkflowExecutionsByStatusRequest struct {
ListWorkflowExecutionsRequest
Status types.WorkflowExecutionCloseStatus
}
ListClosedWorkflowExecutionsByStatusRequest is used to list executions that have specific close status
type ListConcreteExecutionsEntity ¶ added in v0.13.0
type ListConcreteExecutionsEntity struct {
ExecutionInfo *WorkflowExecutionInfo
VersionHistories *VersionHistories
}
ListConcreteExecutionsEntity is a single entity in ListConcreteExecutionsResponse
type ListConcreteExecutionsRequest ¶ added in v0.13.0
ListConcreteExecutionsRequest is request to ListConcreteExecutions
type ListConcreteExecutionsResponse ¶ added in v0.13.0
type ListConcreteExecutionsResponse struct {
Executions []*ListConcreteExecutionsEntity
PageToken []byte
}
ListConcreteExecutionsResponse is response to ListConcreteExecutions
type ListCurrentExecutionsRequest ¶ added in v0.14.0
ListCurrentExecutionsRequest is request to ListCurrentExecutions
type ListCurrentExecutionsResponse ¶ added in v0.14.0
type ListCurrentExecutionsResponse struct {
Executions []*CurrentWorkflowExecution
PageToken []byte
}
ListCurrentExecutionsResponse is the response to ListCurrentExecutionsRequest
func (*ListCurrentExecutionsResponse) ByteSize ¶ added in v1.3.0
func (r *ListCurrentExecutionsResponse) ByteSize() uint64
func (*ListCurrentExecutionsResponse) Len ¶ added in v1.2.7
func (r *ListCurrentExecutionsResponse) Len() int
type ListDomainsRequest ¶ added in v0.3.14
ListDomainsRequest is used to list domains
type ListDomainsResponse ¶ added in v0.3.14
type ListDomainsResponse struct {
Domains []*GetDomainResponse
NextPageToken []byte
}
ListDomainsResponse is the response for GetDomain
func (*ListDomainsResponse) ByteSize ¶ added in v1.3.0
func (r *ListDomainsResponse) ByteSize() uint64
func (*ListDomainsResponse) Len ¶ added in v1.2.7
func (r *ListDomainsResponse) Len() int
type ListTaskListRequest ¶ added in v0.5.4
ListTaskListRequest contains the request params needed to invoke ListTaskList API
type ListTaskListResponse ¶ added in v0.5.4
type ListTaskListResponse struct {
Items []TaskListInfo
NextPageToken []byte
}
ListTaskListResponse is the response from ListTaskList API
type ListWorkflowExecutionsByQueryRequest ¶ added in v0.17.0
type ListWorkflowExecutionsByQueryRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
PageSize int // Maximum number of workflow executions per page
// Token to continue reading next page of workflow executions.
// Pass in empty slice for first page.
NextPageToken []byte
Query string
}
ListWorkflowExecutionsByQueryRequest is used to list executions in a domain
type ListWorkflowExecutionsByTypeRequest ¶
type ListWorkflowExecutionsByTypeRequest struct {
ListWorkflowExecutionsRequest
WorkflowTypeName string
}
ListWorkflowExecutionsByTypeRequest is used to list executions of a specific type in a domain
type ListWorkflowExecutionsByWorkflowIDRequest ¶
type ListWorkflowExecutionsByWorkflowIDRequest struct {
ListWorkflowExecutionsRequest
WorkflowID string
}
ListWorkflowExecutionsByWorkflowIDRequest is used to list executions that have specific WorkflowID in a domain
type ListWorkflowExecutionsRequest ¶
type ListWorkflowExecutionsRequest struct {
DomainUUID string
Domain string // domain name is not persisted, but used as config filter key
// The earliest end of the time range
EarliestTime int64
// The latest end of the time range
LatestTime int64
// Maximum number of workflow executions per page
PageSize int
// Token to continue reading next page of workflow executions.
// Pass in empty slice for first page.
NextPageToken []byte
}
ListWorkflowExecutionsRequest is used to list executions in a domain
type ListWorkflowExecutionsResponse ¶
type ListWorkflowExecutionsResponse struct {
Executions []*types.WorkflowExecutionInfo
// Token to read next page if there are more workflow executions beyond page size.
// Use this to set NextPageToken on ListWorkflowExecutionsRequest to read the next page.
NextPageToken []byte
}
ListWorkflowExecutionsResponse is the response to ListWorkflowExecutionsRequest
type MockConfigStore ¶ added in v1.2.15
type MockConfigStore struct {
// contains filtered or unexported fields
}
MockConfigStore is a mock of ConfigStore interface.
func NewMockConfigStore ¶ added in v1.2.15
func NewMockConfigStore(ctrl *gomock.Controller) *MockConfigStore
NewMockConfigStore creates a new mock instance.
func (*MockConfigStore) Close ¶ added in v1.2.15
func (m *MockConfigStore) Close()
Close mocks base method.
func (*MockConfigStore) EXPECT ¶ added in v1.2.15
func (m *MockConfigStore) EXPECT() *MockConfigStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigStore) FetchConfig ¶ added in v1.2.15
func (m *MockConfigStore) FetchConfig(ctx context.Context, configType ConfigType) (*InternalConfigStoreEntry, error)
FetchConfig mocks base method.
func (*MockConfigStore) UpdateConfig ¶ added in v1.2.15
func (m *MockConfigStore) UpdateConfig(ctx context.Context, value *InternalConfigStoreEntry) error
UpdateConfig mocks base method.
type MockConfigStoreManager ¶ added in v0.23.1
type MockConfigStoreManager struct {
// contains filtered or unexported fields
}
MockConfigStoreManager is a mock of ConfigStoreManager interface.
func NewMockConfigStoreManager ¶ added in v0.23.1
func NewMockConfigStoreManager(ctrl *gomock.Controller) *MockConfigStoreManager
NewMockConfigStoreManager creates a new mock instance.
func (*MockConfigStoreManager) Close ¶ added in v0.23.1
func (m *MockConfigStoreManager) Close()
Close mocks base method.
func (*MockConfigStoreManager) EXPECT ¶ added in v0.23.1
func (m *MockConfigStoreManager) EXPECT() *MockConfigStoreManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigStoreManager) FetchDynamicConfig ¶ added in v0.23.1
func (m *MockConfigStoreManager) FetchDynamicConfig(ctx context.Context, cfgType ConfigType) (*FetchDynamicConfigResponse, error)
FetchDynamicConfig mocks base method.
func (*MockConfigStoreManager) UpdateDynamicConfig ¶ added in v0.23.1
func (m *MockConfigStoreManager) UpdateDynamicConfig(ctx context.Context, request *UpdateDynamicConfigRequest, cfgType ConfigType) error
UpdateDynamicConfig mocks base method.
type MockConfigStoreManagerMockRecorder ¶ added in v0.23.1
type MockConfigStoreManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigStoreManagerMockRecorder is the mock recorder for MockConfigStoreManager.
func (*MockConfigStoreManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockConfigStoreManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConfigStoreManagerMockRecorder) FetchDynamicConfig ¶ added in v0.23.1
func (mr *MockConfigStoreManagerMockRecorder) FetchDynamicConfig(ctx, cfgType any) *gomock.Call
FetchDynamicConfig indicates an expected call of FetchDynamicConfig.
func (*MockConfigStoreManagerMockRecorder) UpdateDynamicConfig ¶ added in v0.23.1
func (mr *MockConfigStoreManagerMockRecorder) UpdateDynamicConfig(ctx, request, cfgType any) *gomock.Call
UpdateDynamicConfig indicates an expected call of UpdateDynamicConfig.
type MockConfigStoreMockRecorder ¶ added in v1.2.15
type MockConfigStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigStoreMockRecorder is the mock recorder for MockConfigStore.
func (*MockConfigStoreMockRecorder) Close ¶ added in v1.2.15
func (mr *MockConfigStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConfigStoreMockRecorder) FetchConfig ¶ added in v1.2.15
func (mr *MockConfigStoreMockRecorder) FetchConfig(ctx, configType any) *gomock.Call
FetchConfig indicates an expected call of FetchConfig.
func (*MockConfigStoreMockRecorder) UpdateConfig ¶ added in v1.2.15
func (mr *MockConfigStoreMockRecorder) UpdateConfig(ctx, value any) *gomock.Call
UpdateConfig indicates an expected call of UpdateConfig.
type MockDomainManager ¶ added in v0.23.1
type MockDomainManager struct {
// contains filtered or unexported fields
}
MockDomainManager is a mock of DomainManager interface.
func NewMockDomainManager ¶ added in v0.23.1
func NewMockDomainManager(ctrl *gomock.Controller) *MockDomainManager
NewMockDomainManager creates a new mock instance.
func (*MockDomainManager) Close ¶ added in v0.23.1
func (m *MockDomainManager) Close()
Close mocks base method.
func (*MockDomainManager) CreateDomain ¶ added in v0.23.1
func (m *MockDomainManager) CreateDomain(ctx context.Context, request *CreateDomainRequest) (*CreateDomainResponse, error)
CreateDomain mocks base method.
func (*MockDomainManager) DeleteDomain ¶ added in v0.23.1
func (m *MockDomainManager) DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
DeleteDomain mocks base method.
func (*MockDomainManager) DeleteDomainByName ¶ added in v0.23.1
func (m *MockDomainManager) DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
DeleteDomainByName mocks base method.
func (*MockDomainManager) EXPECT ¶ added in v0.23.1
func (m *MockDomainManager) EXPECT() *MockDomainManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDomainManager) GetDomain ¶ added in v0.23.1
func (m *MockDomainManager) GetDomain(ctx context.Context, request *GetDomainRequest) (*GetDomainResponse, error)
GetDomain mocks base method.
func (*MockDomainManager) GetMetadata ¶ added in v0.23.1
func (m *MockDomainManager) GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
GetMetadata mocks base method.
func (*MockDomainManager) GetName ¶ added in v0.23.1
func (m *MockDomainManager) GetName() string
GetName mocks base method.
func (*MockDomainManager) ListDomains ¶ added in v0.23.1
func (m *MockDomainManager) ListDomains(ctx context.Context, request *ListDomainsRequest) (*ListDomainsResponse, error)
ListDomains mocks base method.
func (*MockDomainManager) UpdateDomain ¶ added in v0.23.1
func (m *MockDomainManager) UpdateDomain(ctx context.Context, request *UpdateDomainRequest) error
UpdateDomain mocks base method.
type MockDomainManagerMockRecorder ¶ added in v0.23.1
type MockDomainManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockDomainManagerMockRecorder is the mock recorder for MockDomainManager.
func (*MockDomainManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDomainManagerMockRecorder) CreateDomain ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) CreateDomain(ctx, request any) *gomock.Call
CreateDomain indicates an expected call of CreateDomain.
func (*MockDomainManagerMockRecorder) DeleteDomain ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) DeleteDomain(ctx, request any) *gomock.Call
DeleteDomain indicates an expected call of DeleteDomain.
func (*MockDomainManagerMockRecorder) DeleteDomainByName ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) DeleteDomainByName(ctx, request any) *gomock.Call
DeleteDomainByName indicates an expected call of DeleteDomainByName.
func (*MockDomainManagerMockRecorder) GetDomain ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) GetDomain(ctx, request any) *gomock.Call
GetDomain indicates an expected call of GetDomain.
func (*MockDomainManagerMockRecorder) GetMetadata ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) GetMetadata(ctx any) *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockDomainManagerMockRecorder) GetName ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockDomainManagerMockRecorder) ListDomains ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) ListDomains(ctx, request any) *gomock.Call
ListDomains indicates an expected call of ListDomains.
func (*MockDomainManagerMockRecorder) UpdateDomain ¶ added in v0.23.1
func (mr *MockDomainManagerMockRecorder) UpdateDomain(ctx, request any) *gomock.Call
UpdateDomain indicates an expected call of UpdateDomain.
type MockDomainStore ¶ added in v1.2.15
type MockDomainStore struct {
// contains filtered or unexported fields
}
MockDomainStore is a mock of DomainStore interface.
func NewMockDomainStore ¶ added in v1.2.15
func NewMockDomainStore(ctrl *gomock.Controller) *MockDomainStore
NewMockDomainStore creates a new mock instance.
func (*MockDomainStore) Close ¶ added in v1.2.15
func (m *MockDomainStore) Close()
Close mocks base method.
func (*MockDomainStore) CreateDomain ¶ added in v1.2.15
func (m *MockDomainStore) CreateDomain(ctx context.Context, request *InternalCreateDomainRequest) (*CreateDomainResponse, error)
CreateDomain mocks base method.
func (*MockDomainStore) DeleteDomain ¶ added in v1.2.15
func (m *MockDomainStore) DeleteDomain(ctx context.Context, request *DeleteDomainRequest) error
DeleteDomain mocks base method.
func (*MockDomainStore) DeleteDomainByName ¶ added in v1.2.15
func (m *MockDomainStore) DeleteDomainByName(ctx context.Context, request *DeleteDomainByNameRequest) error
DeleteDomainByName mocks base method.
func (*MockDomainStore) EXPECT ¶ added in v1.2.15
func (m *MockDomainStore) EXPECT() *MockDomainStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDomainStore) GetDomain ¶ added in v1.2.15
func (m *MockDomainStore) GetDomain(ctx context.Context, request *GetDomainRequest) (*InternalGetDomainResponse, error)
GetDomain mocks base method.
func (*MockDomainStore) GetMetadata ¶ added in v1.2.15
func (m *MockDomainStore) GetMetadata(ctx context.Context) (*GetMetadataResponse, error)
GetMetadata mocks base method.
func (*MockDomainStore) GetName ¶ added in v1.2.15
func (m *MockDomainStore) GetName() string
GetName mocks base method.
func (*MockDomainStore) ListDomains ¶ added in v1.2.15
func (m *MockDomainStore) ListDomains(ctx context.Context, request *ListDomainsRequest) (*InternalListDomainsResponse, error)
ListDomains mocks base method.
func (*MockDomainStore) UpdateDomain ¶ added in v1.2.15
func (m *MockDomainStore) UpdateDomain(ctx context.Context, request *InternalUpdateDomainRequest) error
UpdateDomain mocks base method.
type MockDomainStoreMockRecorder ¶ added in v1.2.15
type MockDomainStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDomainStoreMockRecorder is the mock recorder for MockDomainStore.
func (*MockDomainStoreMockRecorder) Close ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDomainStoreMockRecorder) CreateDomain ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) CreateDomain(ctx, request any) *gomock.Call
CreateDomain indicates an expected call of CreateDomain.
func (*MockDomainStoreMockRecorder) DeleteDomain ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) DeleteDomain(ctx, request any) *gomock.Call
DeleteDomain indicates an expected call of DeleteDomain.
func (*MockDomainStoreMockRecorder) DeleteDomainByName ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) DeleteDomainByName(ctx, request any) *gomock.Call
DeleteDomainByName indicates an expected call of DeleteDomainByName.
func (*MockDomainStoreMockRecorder) GetDomain ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) GetDomain(ctx, request any) *gomock.Call
GetDomain indicates an expected call of GetDomain.
func (*MockDomainStoreMockRecorder) GetMetadata ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) GetMetadata(ctx any) *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockDomainStoreMockRecorder) GetName ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockDomainStoreMockRecorder) ListDomains ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) ListDomains(ctx, request any) *gomock.Call
ListDomains indicates an expected call of ListDomains.
func (*MockDomainStoreMockRecorder) UpdateDomain ¶ added in v1.2.15
func (mr *MockDomainStoreMockRecorder) UpdateDomain(ctx, request any) *gomock.Call
UpdateDomain indicates an expected call of UpdateDomain.
type MockExecutionManager ¶ added in v0.23.1
type MockExecutionManager struct {
// contains filtered or unexported fields
}
MockExecutionManager is a mock of ExecutionManager interface.
func NewMockExecutionManager ¶ added in v0.23.1
func NewMockExecutionManager(ctrl *gomock.Controller) *MockExecutionManager
NewMockExecutionManager creates a new mock instance.
func (*MockExecutionManager) Close ¶ added in v0.23.1
func (m *MockExecutionManager) Close()
Close mocks base method.
func (*MockExecutionManager) CompleteHistoryTask ¶ added in v1.3.0
func (m *MockExecutionManager) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
CompleteHistoryTask mocks base method.
func (*MockExecutionManager) ConflictResolveWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) ConflictResolveWorkflowExecution(ctx context.Context, request *ConflictResolveWorkflowExecutionRequest) (*ConflictResolveWorkflowExecutionResponse, error)
ConflictResolveWorkflowExecution mocks base method.
func (*MockExecutionManager) CreateFailoverMarkerTasks ¶ added in v0.23.1
func (m *MockExecutionManager) CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
CreateFailoverMarkerTasks mocks base method.
func (*MockExecutionManager) CreateWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) CreateWorkflowExecution(ctx context.Context, request *CreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
CreateWorkflowExecution mocks base method.
func (*MockExecutionManager) DeleteActiveClusterSelectionPolicy ¶ added in v1.3.3
func (m *MockExecutionManager) DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, workflowID, runID string) error
DeleteActiveClusterSelectionPolicy mocks base method.
func (*MockExecutionManager) DeleteCurrentWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution mocks base method.
func (*MockExecutionManager) DeleteReplicationTaskFromDLQ ¶ added in v0.23.1
func (m *MockExecutionManager) DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
DeleteReplicationTaskFromDLQ mocks base method.
func (*MockExecutionManager) DeleteWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution mocks base method.
func (*MockExecutionManager) EXPECT ¶ added in v0.23.1
func (m *MockExecutionManager) EXPECT() *MockExecutionManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutionManager) GetActiveClusterSelectionPolicy ¶ added in v1.3.2
func (m *MockExecutionManager) GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*types.ActiveClusterSelectionPolicy, error)
GetActiveClusterSelectionPolicy mocks base method.
func (*MockExecutionManager) GetCurrentExecution ¶ added in v0.23.1
func (m *MockExecutionManager) GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
GetCurrentExecution mocks base method.
func (*MockExecutionManager) GetHistoryTasks ¶ added in v1.2.18
func (m *MockExecutionManager) GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
GetHistoryTasks mocks base method.
func (*MockExecutionManager) GetName ¶ added in v0.23.1
func (m *MockExecutionManager) GetName() string
GetName mocks base method.
func (*MockExecutionManager) GetReplicationDLQSize ¶ added in v0.23.1
func (m *MockExecutionManager) GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
GetReplicationDLQSize mocks base method.
func (*MockExecutionManager) GetReplicationTasksFromDLQ ¶ added in v0.23.1
func (m *MockExecutionManager) GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
GetReplicationTasksFromDLQ mocks base method.
func (*MockExecutionManager) GetShardID ¶ added in v0.23.1
func (m *MockExecutionManager) GetShardID() int
GetShardID mocks base method.
func (*MockExecutionManager) GetWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) GetWorkflowExecution(ctx context.Context, request *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
GetWorkflowExecution mocks base method.
func (*MockExecutionManager) IsWorkflowExecutionExists ¶ added in v0.23.1
func (m *MockExecutionManager) IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
IsWorkflowExecutionExists mocks base method.
func (*MockExecutionManager) ListConcreteExecutions ¶ added in v0.23.1
func (m *MockExecutionManager) ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
ListConcreteExecutions mocks base method.
func (*MockExecutionManager) ListCurrentExecutions ¶ added in v0.23.1
func (m *MockExecutionManager) ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
ListCurrentExecutions mocks base method.
func (*MockExecutionManager) PutReplicationTaskToDLQ ¶ added in v0.23.1
func (m *MockExecutionManager) PutReplicationTaskToDLQ(ctx context.Context, request *PutReplicationTaskToDLQRequest) error
PutReplicationTaskToDLQ mocks base method.
func (*MockExecutionManager) RangeCompleteHistoryTask ¶ added in v1.2.18
func (m *MockExecutionManager) RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
RangeCompleteHistoryTask mocks base method.
func (*MockExecutionManager) RangeDeleteReplicationTaskFromDLQ ¶ added in v0.23.1
func (m *MockExecutionManager) RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
RangeDeleteReplicationTaskFromDLQ mocks base method.
func (*MockExecutionManager) UpdateWorkflowExecution ¶ added in v0.23.1
func (m *MockExecutionManager) UpdateWorkflowExecution(ctx context.Context, request *UpdateWorkflowExecutionRequest) (*UpdateWorkflowExecutionResponse, error)
UpdateWorkflowExecution mocks base method.
type MockExecutionManagerFactory ¶ added in v0.23.1
type MockExecutionManagerFactory struct {
// contains filtered or unexported fields
}
MockExecutionManagerFactory is a mock of ExecutionManagerFactory interface.
func NewMockExecutionManagerFactory ¶ added in v0.23.1
func NewMockExecutionManagerFactory(ctrl *gomock.Controller) *MockExecutionManagerFactory
NewMockExecutionManagerFactory creates a new mock instance.
func (*MockExecutionManagerFactory) Close ¶ added in v0.23.1
func (m *MockExecutionManagerFactory) Close()
Close mocks base method.
func (*MockExecutionManagerFactory) EXPECT ¶ added in v0.23.1
func (m *MockExecutionManagerFactory) EXPECT() *MockExecutionManagerFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutionManagerFactory) NewExecutionManager ¶ added in v0.23.1
func (m *MockExecutionManagerFactory) NewExecutionManager(shardID int) (ExecutionManager, error)
NewExecutionManager mocks base method.
type MockExecutionManagerFactoryMockRecorder ¶ added in v0.23.1
type MockExecutionManagerFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutionManagerFactoryMockRecorder is the mock recorder for MockExecutionManagerFactory.
func (*MockExecutionManagerFactoryMockRecorder) Close ¶ added in v0.23.1
func (mr *MockExecutionManagerFactoryMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockExecutionManagerFactoryMockRecorder) NewExecutionManager ¶ added in v0.23.1
func (mr *MockExecutionManagerFactoryMockRecorder) NewExecutionManager(shardID any) *gomock.Call
NewExecutionManager indicates an expected call of NewExecutionManager.
type MockExecutionManagerMockRecorder ¶ added in v0.23.1
type MockExecutionManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutionManagerMockRecorder is the mock recorder for MockExecutionManager.
func (*MockExecutionManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockExecutionManagerMockRecorder) CompleteHistoryTask ¶ added in v1.3.0
func (mr *MockExecutionManagerMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
CompleteHistoryTask indicates an expected call of CompleteHistoryTask.
func (*MockExecutionManagerMockRecorder) ConflictResolveWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) ConflictResolveWorkflowExecution(ctx, request any) *gomock.Call
ConflictResolveWorkflowExecution indicates an expected call of ConflictResolveWorkflowExecution.
func (*MockExecutionManagerMockRecorder) CreateFailoverMarkerTasks ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) CreateFailoverMarkerTasks(ctx, request any) *gomock.Call
CreateFailoverMarkerTasks indicates an expected call of CreateFailoverMarkerTasks.
func (*MockExecutionManagerMockRecorder) CreateWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) CreateWorkflowExecution(ctx, request any) *gomock.Call
CreateWorkflowExecution indicates an expected call of CreateWorkflowExecution.
func (*MockExecutionManagerMockRecorder) DeleteActiveClusterSelectionPolicy ¶ added in v1.3.3
func (mr *MockExecutionManagerMockRecorder) DeleteActiveClusterSelectionPolicy(ctx, domainID, workflowID, runID any) *gomock.Call
DeleteActiveClusterSelectionPolicy indicates an expected call of DeleteActiveClusterSelectionPolicy.
func (*MockExecutionManagerMockRecorder) DeleteCurrentWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) DeleteCurrentWorkflowExecution(ctx, request any) *gomock.Call
DeleteCurrentWorkflowExecution indicates an expected call of DeleteCurrentWorkflowExecution.
func (*MockExecutionManagerMockRecorder) DeleteReplicationTaskFromDLQ ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) DeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
DeleteReplicationTaskFromDLQ indicates an expected call of DeleteReplicationTaskFromDLQ.
func (*MockExecutionManagerMockRecorder) DeleteWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (*MockExecutionManagerMockRecorder) GetActiveClusterSelectionPolicy ¶ added in v1.3.2
func (mr *MockExecutionManagerMockRecorder) GetActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
GetActiveClusterSelectionPolicy indicates an expected call of GetActiveClusterSelectionPolicy.
func (*MockExecutionManagerMockRecorder) GetCurrentExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetCurrentExecution(ctx, request any) *gomock.Call
GetCurrentExecution indicates an expected call of GetCurrentExecution.
func (*MockExecutionManagerMockRecorder) GetHistoryTasks ¶ added in v1.2.18
func (mr *MockExecutionManagerMockRecorder) GetHistoryTasks(ctx, request any) *gomock.Call
GetHistoryTasks indicates an expected call of GetHistoryTasks.
func (*MockExecutionManagerMockRecorder) GetName ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockExecutionManagerMockRecorder) GetReplicationDLQSize ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetReplicationDLQSize(ctx, request any) *gomock.Call
GetReplicationDLQSize indicates an expected call of GetReplicationDLQSize.
func (*MockExecutionManagerMockRecorder) GetReplicationTasksFromDLQ ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetReplicationTasksFromDLQ(ctx, request any) *gomock.Call
GetReplicationTasksFromDLQ indicates an expected call of GetReplicationTasksFromDLQ.
func (*MockExecutionManagerMockRecorder) GetShardID ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetShardID() *gomock.Call
GetShardID indicates an expected call of GetShardID.
func (*MockExecutionManagerMockRecorder) GetWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) GetWorkflowExecution(ctx, request any) *gomock.Call
GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
func (*MockExecutionManagerMockRecorder) IsWorkflowExecutionExists ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) IsWorkflowExecutionExists(ctx, request any) *gomock.Call
IsWorkflowExecutionExists indicates an expected call of IsWorkflowExecutionExists.
func (*MockExecutionManagerMockRecorder) ListConcreteExecutions ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) ListConcreteExecutions(ctx, request any) *gomock.Call
ListConcreteExecutions indicates an expected call of ListConcreteExecutions.
func (*MockExecutionManagerMockRecorder) ListCurrentExecutions ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) ListCurrentExecutions(ctx, request any) *gomock.Call
ListCurrentExecutions indicates an expected call of ListCurrentExecutions.
func (*MockExecutionManagerMockRecorder) PutReplicationTaskToDLQ ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) PutReplicationTaskToDLQ(ctx, request any) *gomock.Call
PutReplicationTaskToDLQ indicates an expected call of PutReplicationTaskToDLQ.
func (*MockExecutionManagerMockRecorder) RangeCompleteHistoryTask ¶ added in v1.2.18
func (mr *MockExecutionManagerMockRecorder) RangeCompleteHistoryTask(ctx, request any) *gomock.Call
RangeCompleteHistoryTask indicates an expected call of RangeCompleteHistoryTask.
func (*MockExecutionManagerMockRecorder) RangeDeleteReplicationTaskFromDLQ ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) RangeDeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
RangeDeleteReplicationTaskFromDLQ indicates an expected call of RangeDeleteReplicationTaskFromDLQ.
func (*MockExecutionManagerMockRecorder) UpdateWorkflowExecution ¶ added in v0.23.1
func (mr *MockExecutionManagerMockRecorder) UpdateWorkflowExecution(ctx, request any) *gomock.Call
UpdateWorkflowExecution indicates an expected call of UpdateWorkflowExecution.
type MockExecutionStore ¶ added in v1.2.9
type MockExecutionStore struct {
// contains filtered or unexported fields
}
MockExecutionStore is a mock of ExecutionStore interface.
func NewMockExecutionStore ¶ added in v1.2.9
func NewMockExecutionStore(ctrl *gomock.Controller) *MockExecutionStore
NewMockExecutionStore creates a new mock instance.
func (*MockExecutionStore) Close ¶ added in v1.2.9
func (m *MockExecutionStore) Close()
Close mocks base method.
func (*MockExecutionStore) CompleteHistoryTask ¶ added in v1.3.0
func (m *MockExecutionStore) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
CompleteHistoryTask mocks base method.
func (*MockExecutionStore) ConflictResolveWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) ConflictResolveWorkflowExecution(ctx context.Context, request *InternalConflictResolveWorkflowExecutionRequest) error
ConflictResolveWorkflowExecution mocks base method.
func (*MockExecutionStore) CreateFailoverMarkerTasks ¶ added in v1.2.9
func (m *MockExecutionStore) CreateFailoverMarkerTasks(ctx context.Context, request *CreateFailoverMarkersRequest) error
CreateFailoverMarkerTasks mocks base method.
func (*MockExecutionStore) CreateWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) CreateWorkflowExecution(ctx context.Context, request *InternalCreateWorkflowExecutionRequest) (*CreateWorkflowExecutionResponse, error)
CreateWorkflowExecution mocks base method.
func (*MockExecutionStore) DeleteActiveClusterSelectionPolicy ¶ added in v1.3.3
func (m *MockExecutionStore) DeleteActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) error
DeleteActiveClusterSelectionPolicy mocks base method.
func (*MockExecutionStore) DeleteCurrentWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) DeleteCurrentWorkflowExecution(ctx context.Context, request *DeleteCurrentWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution mocks base method.
func (*MockExecutionStore) DeleteReplicationTaskFromDLQ ¶ added in v1.2.9
func (m *MockExecutionStore) DeleteReplicationTaskFromDLQ(ctx context.Context, request *DeleteReplicationTaskFromDLQRequest) error
DeleteReplicationTaskFromDLQ mocks base method.
func (*MockExecutionStore) DeleteWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) DeleteWorkflowExecution(ctx context.Context, request *DeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution mocks base method.
func (*MockExecutionStore) EXPECT ¶ added in v1.2.9
func (m *MockExecutionStore) EXPECT() *MockExecutionStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutionStore) GetActiveClusterSelectionPolicy ¶ added in v1.3.2
func (m *MockExecutionStore) GetActiveClusterSelectionPolicy(ctx context.Context, domainID, wfID, rID string) (*DataBlob, error)
GetActiveClusterSelectionPolicy mocks base method.
func (*MockExecutionStore) GetCurrentExecution ¶ added in v1.2.9
func (m *MockExecutionStore) GetCurrentExecution(ctx context.Context, request *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
GetCurrentExecution mocks base method.
func (*MockExecutionStore) GetHistoryTasks ¶ added in v1.2.18
func (m *MockExecutionStore) GetHistoryTasks(ctx context.Context, request *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
GetHistoryTasks mocks base method.
func (*MockExecutionStore) GetName ¶ added in v1.2.9
func (m *MockExecutionStore) GetName() string
GetName mocks base method.
func (*MockExecutionStore) GetReplicationDLQSize ¶ added in v1.2.9
func (m *MockExecutionStore) GetReplicationDLQSize(ctx context.Context, request *GetReplicationDLQSizeRequest) (*GetReplicationDLQSizeResponse, error)
GetReplicationDLQSize mocks base method.
func (*MockExecutionStore) GetReplicationTasksFromDLQ ¶ added in v1.2.9
func (m *MockExecutionStore) GetReplicationTasksFromDLQ(ctx context.Context, request *GetReplicationTasksFromDLQRequest) (*GetHistoryTasksResponse, error)
GetReplicationTasksFromDLQ mocks base method.
func (*MockExecutionStore) GetShardID ¶ added in v1.2.9
func (m *MockExecutionStore) GetShardID() int
GetShardID mocks base method.
func (*MockExecutionStore) GetWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) GetWorkflowExecution(ctx context.Context, request *InternalGetWorkflowExecutionRequest) (*InternalGetWorkflowExecutionResponse, error)
GetWorkflowExecution mocks base method.
func (*MockExecutionStore) IsWorkflowExecutionExists ¶ added in v1.2.9
func (m *MockExecutionStore) IsWorkflowExecutionExists(ctx context.Context, request *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
IsWorkflowExecutionExists mocks base method.
func (*MockExecutionStore) ListConcreteExecutions ¶ added in v1.2.9
func (m *MockExecutionStore) ListConcreteExecutions(ctx context.Context, request *ListConcreteExecutionsRequest) (*InternalListConcreteExecutionsResponse, error)
ListConcreteExecutions mocks base method.
func (*MockExecutionStore) ListCurrentExecutions ¶ added in v1.2.9
func (m *MockExecutionStore) ListCurrentExecutions(ctx context.Context, request *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
ListCurrentExecutions mocks base method.
func (*MockExecutionStore) PutReplicationTaskToDLQ ¶ added in v1.2.9
func (m *MockExecutionStore) PutReplicationTaskToDLQ(ctx context.Context, request *InternalPutReplicationTaskToDLQRequest) error
PutReplicationTaskToDLQ mocks base method.
func (*MockExecutionStore) RangeCompleteHistoryTask ¶ added in v1.2.18
func (m *MockExecutionStore) RangeCompleteHistoryTask(ctx context.Context, request *RangeCompleteHistoryTaskRequest) (*RangeCompleteHistoryTaskResponse, error)
RangeCompleteHistoryTask mocks base method.
func (*MockExecutionStore) RangeDeleteReplicationTaskFromDLQ ¶ added in v1.2.9
func (m *MockExecutionStore) RangeDeleteReplicationTaskFromDLQ(ctx context.Context, request *RangeDeleteReplicationTaskFromDLQRequest) (*RangeDeleteReplicationTaskFromDLQResponse, error)
RangeDeleteReplicationTaskFromDLQ mocks base method.
func (*MockExecutionStore) UpdateWorkflowExecution ¶ added in v1.2.9
func (m *MockExecutionStore) UpdateWorkflowExecution(ctx context.Context, request *InternalUpdateWorkflowExecutionRequest) error
UpdateWorkflowExecution mocks base method.
type MockExecutionStoreMockRecorder ¶ added in v1.2.9
type MockExecutionStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutionStoreMockRecorder is the mock recorder for MockExecutionStore.
func (*MockExecutionStoreMockRecorder) Close ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockExecutionStoreMockRecorder) CompleteHistoryTask ¶ added in v1.3.0
func (mr *MockExecutionStoreMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
CompleteHistoryTask indicates an expected call of CompleteHistoryTask.
func (*MockExecutionStoreMockRecorder) ConflictResolveWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) ConflictResolveWorkflowExecution(ctx, request any) *gomock.Call
ConflictResolveWorkflowExecution indicates an expected call of ConflictResolveWorkflowExecution.
func (*MockExecutionStoreMockRecorder) CreateFailoverMarkerTasks ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) CreateFailoverMarkerTasks(ctx, request any) *gomock.Call
CreateFailoverMarkerTasks indicates an expected call of CreateFailoverMarkerTasks.
func (*MockExecutionStoreMockRecorder) CreateWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) CreateWorkflowExecution(ctx, request any) *gomock.Call
CreateWorkflowExecution indicates an expected call of CreateWorkflowExecution.
func (*MockExecutionStoreMockRecorder) DeleteActiveClusterSelectionPolicy ¶ added in v1.3.3
func (mr *MockExecutionStoreMockRecorder) DeleteActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
DeleteActiveClusterSelectionPolicy indicates an expected call of DeleteActiveClusterSelectionPolicy.
func (*MockExecutionStoreMockRecorder) DeleteCurrentWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) DeleteCurrentWorkflowExecution(ctx, request any) *gomock.Call
DeleteCurrentWorkflowExecution indicates an expected call of DeleteCurrentWorkflowExecution.
func (*MockExecutionStoreMockRecorder) DeleteReplicationTaskFromDLQ ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) DeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
DeleteReplicationTaskFromDLQ indicates an expected call of DeleteReplicationTaskFromDLQ.
func (*MockExecutionStoreMockRecorder) DeleteWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (*MockExecutionStoreMockRecorder) GetActiveClusterSelectionPolicy ¶ added in v1.3.2
func (mr *MockExecutionStoreMockRecorder) GetActiveClusterSelectionPolicy(ctx, domainID, wfID, rID any) *gomock.Call
GetActiveClusterSelectionPolicy indicates an expected call of GetActiveClusterSelectionPolicy.
func (*MockExecutionStoreMockRecorder) GetCurrentExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetCurrentExecution(ctx, request any) *gomock.Call
GetCurrentExecution indicates an expected call of GetCurrentExecution.
func (*MockExecutionStoreMockRecorder) GetHistoryTasks ¶ added in v1.2.18
func (mr *MockExecutionStoreMockRecorder) GetHistoryTasks(ctx, request any) *gomock.Call
GetHistoryTasks indicates an expected call of GetHistoryTasks.
func (*MockExecutionStoreMockRecorder) GetName ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockExecutionStoreMockRecorder) GetReplicationDLQSize ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetReplicationDLQSize(ctx, request any) *gomock.Call
GetReplicationDLQSize indicates an expected call of GetReplicationDLQSize.
func (*MockExecutionStoreMockRecorder) GetReplicationTasksFromDLQ ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetReplicationTasksFromDLQ(ctx, request any) *gomock.Call
GetReplicationTasksFromDLQ indicates an expected call of GetReplicationTasksFromDLQ.
func (*MockExecutionStoreMockRecorder) GetShardID ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetShardID() *gomock.Call
GetShardID indicates an expected call of GetShardID.
func (*MockExecutionStoreMockRecorder) GetWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) GetWorkflowExecution(ctx, request any) *gomock.Call
GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
func (*MockExecutionStoreMockRecorder) IsWorkflowExecutionExists ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) IsWorkflowExecutionExists(ctx, request any) *gomock.Call
IsWorkflowExecutionExists indicates an expected call of IsWorkflowExecutionExists.
func (*MockExecutionStoreMockRecorder) ListConcreteExecutions ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) ListConcreteExecutions(ctx, request any) *gomock.Call
ListConcreteExecutions indicates an expected call of ListConcreteExecutions.
func (*MockExecutionStoreMockRecorder) ListCurrentExecutions ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) ListCurrentExecutions(ctx, request any) *gomock.Call
ListCurrentExecutions indicates an expected call of ListCurrentExecutions.
func (*MockExecutionStoreMockRecorder) PutReplicationTaskToDLQ ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) PutReplicationTaskToDLQ(ctx, request any) *gomock.Call
PutReplicationTaskToDLQ indicates an expected call of PutReplicationTaskToDLQ.
func (*MockExecutionStoreMockRecorder) RangeCompleteHistoryTask ¶ added in v1.2.18
func (mr *MockExecutionStoreMockRecorder) RangeCompleteHistoryTask(ctx, request any) *gomock.Call
RangeCompleteHistoryTask indicates an expected call of RangeCompleteHistoryTask.
func (*MockExecutionStoreMockRecorder) RangeDeleteReplicationTaskFromDLQ ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) RangeDeleteReplicationTaskFromDLQ(ctx, request any) *gomock.Call
RangeDeleteReplicationTaskFromDLQ indicates an expected call of RangeDeleteReplicationTaskFromDLQ.
func (*MockExecutionStoreMockRecorder) UpdateWorkflowExecution ¶ added in v1.2.9
func (mr *MockExecutionStoreMockRecorder) UpdateWorkflowExecution(ctx, request any) *gomock.Call
UpdateWorkflowExecution indicates an expected call of UpdateWorkflowExecution.
type MockHistoryManager ¶ added in v0.23.1
type MockHistoryManager struct {
// contains filtered or unexported fields
}
MockHistoryManager is a mock of HistoryManager interface.
func NewMockHistoryManager ¶ added in v0.23.1
func NewMockHistoryManager(ctrl *gomock.Controller) *MockHistoryManager
NewMockHistoryManager creates a new mock instance.
func (*MockHistoryManager) AppendHistoryNodes ¶ added in v0.23.1
func (m *MockHistoryManager) AppendHistoryNodes(ctx context.Context, request *AppendHistoryNodesRequest) (*AppendHistoryNodesResponse, error)
AppendHistoryNodes mocks base method.
func (*MockHistoryManager) Close ¶ added in v0.23.1
func (m *MockHistoryManager) Close()
Close mocks base method.
func (*MockHistoryManager) DeleteHistoryBranch ¶ added in v0.23.1
func (m *MockHistoryManager) DeleteHistoryBranch(ctx context.Context, request *DeleteHistoryBranchRequest) error
DeleteHistoryBranch mocks base method.
func (*MockHistoryManager) EXPECT ¶ added in v0.23.1
func (m *MockHistoryManager) EXPECT() *MockHistoryManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHistoryManager) ForkHistoryBranch ¶ added in v0.23.1
func (m *MockHistoryManager) ForkHistoryBranch(ctx context.Context, request *ForkHistoryBranchRequest) (*ForkHistoryBranchResponse, error)
ForkHistoryBranch mocks base method.
func (*MockHistoryManager) GetAllHistoryTreeBranches ¶ added in v0.23.1
func (m *MockHistoryManager) GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
GetAllHistoryTreeBranches mocks base method.
func (*MockHistoryManager) GetHistoryTree ¶ added in v0.23.1
func (m *MockHistoryManager) GetHistoryTree(ctx context.Context, request *GetHistoryTreeRequest) (*GetHistoryTreeResponse, error)
GetHistoryTree mocks base method.
func (*MockHistoryManager) GetName ¶ added in v0.23.1
func (m *MockHistoryManager) GetName() string
GetName mocks base method.
func (*MockHistoryManager) ReadHistoryBranch ¶ added in v0.23.1
func (m *MockHistoryManager) ReadHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
ReadHistoryBranch mocks base method.
func (*MockHistoryManager) ReadHistoryBranchByBatch ¶ added in v0.23.1
func (m *MockHistoryManager) ReadHistoryBranchByBatch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadHistoryBranchByBatchResponse, error)
ReadHistoryBranchByBatch mocks base method.
func (*MockHistoryManager) ReadRawHistoryBranch ¶ added in v0.23.1
func (m *MockHistoryManager) ReadRawHistoryBranch(ctx context.Context, request *ReadHistoryBranchRequest) (*ReadRawHistoryBranchResponse, error)
ReadRawHistoryBranch mocks base method.
type MockHistoryManagerMockRecorder ¶ added in v0.23.1
type MockHistoryManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockHistoryManagerMockRecorder is the mock recorder for MockHistoryManager.
func (*MockHistoryManagerMockRecorder) AppendHistoryNodes ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) AppendHistoryNodes(ctx, request any) *gomock.Call
AppendHistoryNodes indicates an expected call of AppendHistoryNodes.
func (*MockHistoryManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockHistoryManagerMockRecorder) DeleteHistoryBranch ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) DeleteHistoryBranch(ctx, request any) *gomock.Call
DeleteHistoryBranch indicates an expected call of DeleteHistoryBranch.
func (*MockHistoryManagerMockRecorder) ForkHistoryBranch ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) ForkHistoryBranch(ctx, request any) *gomock.Call
ForkHistoryBranch indicates an expected call of ForkHistoryBranch.
func (*MockHistoryManagerMockRecorder) GetAllHistoryTreeBranches ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) GetAllHistoryTreeBranches(ctx, request any) *gomock.Call
GetAllHistoryTreeBranches indicates an expected call of GetAllHistoryTreeBranches.
func (*MockHistoryManagerMockRecorder) GetHistoryTree ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) GetHistoryTree(ctx, request any) *gomock.Call
GetHistoryTree indicates an expected call of GetHistoryTree.
func (*MockHistoryManagerMockRecorder) GetName ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockHistoryManagerMockRecorder) ReadHistoryBranch ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) ReadHistoryBranch(ctx, request any) *gomock.Call
ReadHistoryBranch indicates an expected call of ReadHistoryBranch.
func (*MockHistoryManagerMockRecorder) ReadHistoryBranchByBatch ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) ReadHistoryBranchByBatch(ctx, request any) *gomock.Call
ReadHistoryBranchByBatch indicates an expected call of ReadHistoryBranchByBatch.
func (*MockHistoryManagerMockRecorder) ReadRawHistoryBranch ¶ added in v0.23.1
func (mr *MockHistoryManagerMockRecorder) ReadRawHistoryBranch(ctx, request any) *gomock.Call
ReadRawHistoryBranch indicates an expected call of ReadRawHistoryBranch.
type MockHistoryStore ¶ added in v1.2.15
type MockHistoryStore struct {
// contains filtered or unexported fields
}
MockHistoryStore is a mock of HistoryStore interface.
func NewMockHistoryStore ¶ added in v1.2.15
func NewMockHistoryStore(ctrl *gomock.Controller) *MockHistoryStore
NewMockHistoryStore creates a new mock instance.
func (*MockHistoryStore) AppendHistoryNodes ¶ added in v1.2.15
func (m *MockHistoryStore) AppendHistoryNodes(ctx context.Context, request *InternalAppendHistoryNodesRequest) error
AppendHistoryNodes mocks base method.
func (*MockHistoryStore) Close ¶ added in v1.2.15
func (m *MockHistoryStore) Close()
Close mocks base method.
func (*MockHistoryStore) DeleteHistoryBranch ¶ added in v1.2.15
func (m *MockHistoryStore) DeleteHistoryBranch(ctx context.Context, request *InternalDeleteHistoryBranchRequest) error
DeleteHistoryBranch mocks base method.
func (*MockHistoryStore) EXPECT ¶ added in v1.2.15
func (m *MockHistoryStore) EXPECT() *MockHistoryStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHistoryStore) ForkHistoryBranch ¶ added in v1.2.15
func (m *MockHistoryStore) ForkHistoryBranch(ctx context.Context, request *InternalForkHistoryBranchRequest) (*InternalForkHistoryBranchResponse, error)
ForkHistoryBranch mocks base method.
func (*MockHistoryStore) GetAllHistoryTreeBranches ¶ added in v1.2.15
func (m *MockHistoryStore) GetAllHistoryTreeBranches(ctx context.Context, request *GetAllHistoryTreeBranchesRequest) (*GetAllHistoryTreeBranchesResponse, error)
GetAllHistoryTreeBranches mocks base method.
func (*MockHistoryStore) GetHistoryTree ¶ added in v1.2.15
func (m *MockHistoryStore) GetHistoryTree(ctx context.Context, request *InternalGetHistoryTreeRequest) (*InternalGetHistoryTreeResponse, error)
GetHistoryTree mocks base method.
func (*MockHistoryStore) GetName ¶ added in v1.2.15
func (m *MockHistoryStore) GetName() string
GetName mocks base method.
func (*MockHistoryStore) ReadHistoryBranch ¶ added in v1.2.15
func (m *MockHistoryStore) ReadHistoryBranch(ctx context.Context, request *InternalReadHistoryBranchRequest) (*InternalReadHistoryBranchResponse, error)
ReadHistoryBranch mocks base method.
type MockHistoryStoreMockRecorder ¶ added in v1.2.15
type MockHistoryStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockHistoryStoreMockRecorder is the mock recorder for MockHistoryStore.
func (*MockHistoryStoreMockRecorder) AppendHistoryNodes ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) AppendHistoryNodes(ctx, request any) *gomock.Call
AppendHistoryNodes indicates an expected call of AppendHistoryNodes.
func (*MockHistoryStoreMockRecorder) Close ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockHistoryStoreMockRecorder) DeleteHistoryBranch ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) DeleteHistoryBranch(ctx, request any) *gomock.Call
DeleteHistoryBranch indicates an expected call of DeleteHistoryBranch.
func (*MockHistoryStoreMockRecorder) ForkHistoryBranch ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) ForkHistoryBranch(ctx, request any) *gomock.Call
ForkHistoryBranch indicates an expected call of ForkHistoryBranch.
func (*MockHistoryStoreMockRecorder) GetAllHistoryTreeBranches ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) GetAllHistoryTreeBranches(ctx, request any) *gomock.Call
GetAllHistoryTreeBranches indicates an expected call of GetAllHistoryTreeBranches.
func (*MockHistoryStoreMockRecorder) GetHistoryTree ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) GetHistoryTree(ctx, request any) *gomock.Call
GetHistoryTree indicates an expected call of GetHistoryTree.
func (*MockHistoryStoreMockRecorder) GetName ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockHistoryStoreMockRecorder) ReadHistoryBranch ¶ added in v1.2.15
func (mr *MockHistoryStoreMockRecorder) ReadHistoryBranch(ctx, request any) *gomock.Call
ReadHistoryBranch indicates an expected call of ReadHistoryBranch.
type MockPayloadSerializer ¶ added in v1.2.9
type MockPayloadSerializer struct {
// contains filtered or unexported fields
}
MockPayloadSerializer is a mock of PayloadSerializer interface.
func NewMockPayloadSerializer ¶ added in v1.2.9
func NewMockPayloadSerializer(ctrl *gomock.Controller) *MockPayloadSerializer
NewMockPayloadSerializer creates a new mock instance.
func (*MockPayloadSerializer) DeserializeActiveClusterSelectionPolicy ¶ added in v1.3.2
func (m *MockPayloadSerializer) DeserializeActiveClusterSelectionPolicy(data *DataBlob) (*types.ActiveClusterSelectionPolicy, error)
DeserializeActiveClusterSelectionPolicy mocks base method.
func (*MockPayloadSerializer) DeserializeActiveClusters ¶ added in v1.3.1
func (m *MockPayloadSerializer) DeserializeActiveClusters(data *DataBlob) (*types.ActiveClusters, error)
DeserializeActiveClusters mocks base method.
func (*MockPayloadSerializer) DeserializeAsyncWorkflowsConfig ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeAsyncWorkflowsConfig(data *DataBlob) (*types.AsyncWorkflowConfiguration, error)
DeserializeAsyncWorkflowsConfig mocks base method.
func (*MockPayloadSerializer) DeserializeBadBinaries ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeBadBinaries(data *DataBlob) (*types.BadBinaries, error)
DeserializeBadBinaries mocks base method.
func (*MockPayloadSerializer) DeserializeBatchEvents ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeBatchEvents(data *DataBlob) ([]*types.HistoryEvent, error)
DeserializeBatchEvents mocks base method.
func (*MockPayloadSerializer) DeserializeChecksum ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeChecksum(data *DataBlob) (checksum.Checksum, error)
DeserializeChecksum mocks base method.
func (*MockPayloadSerializer) DeserializeDynamicConfigBlob ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeDynamicConfigBlob(data *DataBlob) (*types.DynamicConfigBlob, error)
DeserializeDynamicConfigBlob mocks base method.
func (*MockPayloadSerializer) DeserializeEvent ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeEvent(data *DataBlob) (*types.HistoryEvent, error)
DeserializeEvent mocks base method.
func (*MockPayloadSerializer) DeserializeIsolationGroups ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeIsolationGroups(data *DataBlob) (*types.IsolationGroupConfiguration, error)
DeserializeIsolationGroups mocks base method.
func (*MockPayloadSerializer) DeserializePendingFailoverMarkers ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializePendingFailoverMarkers(data *DataBlob) ([]*types.FailoverMarkerAttributes, error)
DeserializePendingFailoverMarkers mocks base method.
func (*MockPayloadSerializer) DeserializeProcessingQueueStates ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeProcessingQueueStates(data *DataBlob) (*types.ProcessingQueueStates, error)
DeserializeProcessingQueueStates mocks base method.
func (*MockPayloadSerializer) DeserializeResetPoints ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeResetPoints(data *DataBlob) (*types.ResetPoints, error)
DeserializeResetPoints mocks base method.
func (*MockPayloadSerializer) DeserializeVersionHistories ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeVersionHistories(data *DataBlob) (*types.VersionHistories, error)
DeserializeVersionHistories mocks base method.
func (*MockPayloadSerializer) DeserializeVisibilityMemo ¶ added in v1.2.9
func (m *MockPayloadSerializer) DeserializeVisibilityMemo(data *DataBlob) (*types.Memo, error)
DeserializeVisibilityMemo mocks base method.
func (*MockPayloadSerializer) EXPECT ¶ added in v1.2.9
func (m *MockPayloadSerializer) EXPECT() *MockPayloadSerializerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPayloadSerializer) SerializeActiveClusterSelectionPolicy ¶ added in v1.3.2
func (m *MockPayloadSerializer) SerializeActiveClusterSelectionPolicy(policy *types.ActiveClusterSelectionPolicy, encodingType constants.EncodingType) (*DataBlob, error)
SerializeActiveClusterSelectionPolicy mocks base method.
func (*MockPayloadSerializer) SerializeActiveClusters ¶ added in v1.3.1
func (m *MockPayloadSerializer) SerializeActiveClusters(activeClusters *types.ActiveClusters, encodingType constants.EncodingType) (*DataBlob, error)
SerializeActiveClusters mocks base method.
func (*MockPayloadSerializer) SerializeAsyncWorkflowsConfig ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeAsyncWorkflowsConfig(config *types.AsyncWorkflowConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
SerializeAsyncWorkflowsConfig mocks base method.
func (*MockPayloadSerializer) SerializeBadBinaries ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeBadBinaries(event *types.BadBinaries, encodingType constants.EncodingType) (*DataBlob, error)
SerializeBadBinaries mocks base method.
func (*MockPayloadSerializer) SerializeBatchEvents ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeBatchEvents(batch []*types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
SerializeBatchEvents mocks base method.
func (*MockPayloadSerializer) SerializeChecksum ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeChecksum(sum checksum.Checksum, encodingType constants.EncodingType) (*DataBlob, error)
SerializeChecksum mocks base method.
func (*MockPayloadSerializer) SerializeDynamicConfigBlob ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeDynamicConfigBlob(blob *types.DynamicConfigBlob, encodingType constants.EncodingType) (*DataBlob, error)
SerializeDynamicConfigBlob mocks base method.
func (*MockPayloadSerializer) SerializeEvent ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeEvent(event *types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
SerializeEvent mocks base method.
func (*MockPayloadSerializer) SerializeIsolationGroups ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeIsolationGroups(event *types.IsolationGroupConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
SerializeIsolationGroups mocks base method.
func (*MockPayloadSerializer) SerializePendingFailoverMarkers ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializePendingFailoverMarkers(markers []*types.FailoverMarkerAttributes, encodingType constants.EncodingType) (*DataBlob, error)
SerializePendingFailoverMarkers mocks base method.
func (*MockPayloadSerializer) SerializeProcessingQueueStates ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeProcessingQueueStates(states *types.ProcessingQueueStates, encodingType constants.EncodingType) (*DataBlob, error)
SerializeProcessingQueueStates mocks base method.
func (*MockPayloadSerializer) SerializeResetPoints ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeResetPoints(event *types.ResetPoints, encodingType constants.EncodingType) (*DataBlob, error)
SerializeResetPoints mocks base method.
func (*MockPayloadSerializer) SerializeVersionHistories ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeVersionHistories(histories *types.VersionHistories, encodingType constants.EncodingType) (*DataBlob, error)
SerializeVersionHistories mocks base method.
func (*MockPayloadSerializer) SerializeVisibilityMemo ¶ added in v1.2.9
func (m *MockPayloadSerializer) SerializeVisibilityMemo(memo *types.Memo, encodingType constants.EncodingType) (*DataBlob, error)
SerializeVisibilityMemo mocks base method.
type MockPayloadSerializerMockRecorder ¶ added in v1.2.9
type MockPayloadSerializerMockRecorder struct {
// contains filtered or unexported fields
}
MockPayloadSerializerMockRecorder is the mock recorder for MockPayloadSerializer.
func (*MockPayloadSerializerMockRecorder) DeserializeActiveClusterSelectionPolicy ¶ added in v1.3.2
func (mr *MockPayloadSerializerMockRecorder) DeserializeActiveClusterSelectionPolicy(data any) *gomock.Call
DeserializeActiveClusterSelectionPolicy indicates an expected call of DeserializeActiveClusterSelectionPolicy.
func (*MockPayloadSerializerMockRecorder) DeserializeActiveClusters ¶ added in v1.3.1
func (mr *MockPayloadSerializerMockRecorder) DeserializeActiveClusters(data any) *gomock.Call
DeserializeActiveClusters indicates an expected call of DeserializeActiveClusters.
func (*MockPayloadSerializerMockRecorder) DeserializeAsyncWorkflowsConfig ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeAsyncWorkflowsConfig(data any) *gomock.Call
DeserializeAsyncWorkflowsConfig indicates an expected call of DeserializeAsyncWorkflowsConfig.
func (*MockPayloadSerializerMockRecorder) DeserializeBadBinaries ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeBadBinaries(data any) *gomock.Call
DeserializeBadBinaries indicates an expected call of DeserializeBadBinaries.
func (*MockPayloadSerializerMockRecorder) DeserializeBatchEvents ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeBatchEvents(data any) *gomock.Call
DeserializeBatchEvents indicates an expected call of DeserializeBatchEvents.
func (*MockPayloadSerializerMockRecorder) DeserializeChecksum ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeChecksum(data any) *gomock.Call
DeserializeChecksum indicates an expected call of DeserializeChecksum.
func (*MockPayloadSerializerMockRecorder) DeserializeDynamicConfigBlob ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeDynamicConfigBlob(data any) *gomock.Call
DeserializeDynamicConfigBlob indicates an expected call of DeserializeDynamicConfigBlob.
func (*MockPayloadSerializerMockRecorder) DeserializeEvent ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeEvent(data any) *gomock.Call
DeserializeEvent indicates an expected call of DeserializeEvent.
func (*MockPayloadSerializerMockRecorder) DeserializeIsolationGroups ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeIsolationGroups(data any) *gomock.Call
DeserializeIsolationGroups indicates an expected call of DeserializeIsolationGroups.
func (*MockPayloadSerializerMockRecorder) DeserializePendingFailoverMarkers ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializePendingFailoverMarkers(data any) *gomock.Call
DeserializePendingFailoverMarkers indicates an expected call of DeserializePendingFailoverMarkers.
func (*MockPayloadSerializerMockRecorder) DeserializeProcessingQueueStates ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeProcessingQueueStates(data any) *gomock.Call
DeserializeProcessingQueueStates indicates an expected call of DeserializeProcessingQueueStates.
func (*MockPayloadSerializerMockRecorder) DeserializeResetPoints ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeResetPoints(data any) *gomock.Call
DeserializeResetPoints indicates an expected call of DeserializeResetPoints.
func (*MockPayloadSerializerMockRecorder) DeserializeVersionHistories ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeVersionHistories(data any) *gomock.Call
DeserializeVersionHistories indicates an expected call of DeserializeVersionHistories.
func (*MockPayloadSerializerMockRecorder) DeserializeVisibilityMemo ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) DeserializeVisibilityMemo(data any) *gomock.Call
DeserializeVisibilityMemo indicates an expected call of DeserializeVisibilityMemo.
func (*MockPayloadSerializerMockRecorder) SerializeActiveClusterSelectionPolicy ¶ added in v1.3.2
func (mr *MockPayloadSerializerMockRecorder) SerializeActiveClusterSelectionPolicy(policy, encodingType any) *gomock.Call
SerializeActiveClusterSelectionPolicy indicates an expected call of SerializeActiveClusterSelectionPolicy.
func (*MockPayloadSerializerMockRecorder) SerializeActiveClusters ¶ added in v1.3.1
func (mr *MockPayloadSerializerMockRecorder) SerializeActiveClusters(activeClusters, encodingType any) *gomock.Call
SerializeActiveClusters indicates an expected call of SerializeActiveClusters.
func (*MockPayloadSerializerMockRecorder) SerializeAsyncWorkflowsConfig ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeAsyncWorkflowsConfig(config, encodingType any) *gomock.Call
SerializeAsyncWorkflowsConfig indicates an expected call of SerializeAsyncWorkflowsConfig.
func (*MockPayloadSerializerMockRecorder) SerializeBadBinaries ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeBadBinaries(event, encodingType any) *gomock.Call
SerializeBadBinaries indicates an expected call of SerializeBadBinaries.
func (*MockPayloadSerializerMockRecorder) SerializeBatchEvents ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeBatchEvents(batch, encodingType any) *gomock.Call
SerializeBatchEvents indicates an expected call of SerializeBatchEvents.
func (*MockPayloadSerializerMockRecorder) SerializeChecksum ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeChecksum(sum, encodingType any) *gomock.Call
SerializeChecksum indicates an expected call of SerializeChecksum.
func (*MockPayloadSerializerMockRecorder) SerializeDynamicConfigBlob ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeDynamicConfigBlob(blob, encodingType any) *gomock.Call
SerializeDynamicConfigBlob indicates an expected call of SerializeDynamicConfigBlob.
func (*MockPayloadSerializerMockRecorder) SerializeEvent ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeEvent(event, encodingType any) *gomock.Call
SerializeEvent indicates an expected call of SerializeEvent.
func (*MockPayloadSerializerMockRecorder) SerializeIsolationGroups ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeIsolationGroups(event, encodingType any) *gomock.Call
SerializeIsolationGroups indicates an expected call of SerializeIsolationGroups.
func (*MockPayloadSerializerMockRecorder) SerializePendingFailoverMarkers ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializePendingFailoverMarkers(markers, encodingType any) *gomock.Call
SerializePendingFailoverMarkers indicates an expected call of SerializePendingFailoverMarkers.
func (*MockPayloadSerializerMockRecorder) SerializeProcessingQueueStates ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeProcessingQueueStates(states, encodingType any) *gomock.Call
SerializeProcessingQueueStates indicates an expected call of SerializeProcessingQueueStates.
func (*MockPayloadSerializerMockRecorder) SerializeResetPoints ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeResetPoints(event, encodingType any) *gomock.Call
SerializeResetPoints indicates an expected call of SerializeResetPoints.
func (*MockPayloadSerializerMockRecorder) SerializeVersionHistories ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeVersionHistories(histories, encodingType any) *gomock.Call
SerializeVersionHistories indicates an expected call of SerializeVersionHistories.
func (*MockPayloadSerializerMockRecorder) SerializeVisibilityMemo ¶ added in v1.2.9
func (mr *MockPayloadSerializerMockRecorder) SerializeVisibilityMemo(memo, encodingType any) *gomock.Call
SerializeVisibilityMemo indicates an expected call of SerializeVisibilityMemo.
type MockQueueManager ¶ added in v0.23.1
type MockQueueManager struct {
// contains filtered or unexported fields
}
MockQueueManager is a mock of QueueManager interface.
func NewMockQueueManager ¶ added in v0.23.1
func NewMockQueueManager(ctrl *gomock.Controller) *MockQueueManager
NewMockQueueManager creates a new mock instance.
func (*MockQueueManager) Close ¶ added in v0.23.1
func (m *MockQueueManager) Close()
Close mocks base method.
func (*MockQueueManager) DeleteMessageFromDLQ ¶ added in v0.23.1
func (m *MockQueueManager) DeleteMessageFromDLQ(ctx context.Context, messageID int64) error
DeleteMessageFromDLQ mocks base method.
func (*MockQueueManager) DeleteMessagesBefore ¶ added in v0.23.1
func (m *MockQueueManager) DeleteMessagesBefore(ctx context.Context, messageID int64) error
DeleteMessagesBefore mocks base method.
func (*MockQueueManager) EXPECT ¶ added in v0.23.1
func (m *MockQueueManager) EXPECT() *MockQueueManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueueManager) EnqueueMessage ¶ added in v0.23.1
func (m *MockQueueManager) EnqueueMessage(ctx context.Context, messagePayload []byte) error
EnqueueMessage mocks base method.
func (*MockQueueManager) EnqueueMessageToDLQ ¶ added in v0.23.1
func (m *MockQueueManager) EnqueueMessageToDLQ(ctx context.Context, messagePayload []byte) error
EnqueueMessageToDLQ mocks base method.
func (*MockQueueManager) GetAckLevels ¶ added in v0.23.1
GetAckLevels mocks base method.
func (*MockQueueManager) GetDLQAckLevels ¶ added in v0.23.1
GetDLQAckLevels mocks base method.
func (*MockQueueManager) GetDLQSize ¶ added in v0.23.1
func (m *MockQueueManager) GetDLQSize(ctx context.Context) (int64, error)
GetDLQSize mocks base method.
func (*MockQueueManager) RangeDeleteMessagesFromDLQ ¶ added in v0.23.1
func (m *MockQueueManager) RangeDeleteMessagesFromDLQ(ctx context.Context, firstMessageID, lastMessageID int64) error
RangeDeleteMessagesFromDLQ mocks base method.
func (*MockQueueManager) ReadMessages ¶ added in v0.23.1
func (m *MockQueueManager) ReadMessages(ctx context.Context, lastMessageID int64, maxCount int) (QueueMessageList, error)
ReadMessages mocks base method.
func (*MockQueueManager) ReadMessagesFromDLQ ¶ added in v0.23.1
func (m *MockQueueManager) ReadMessagesFromDLQ(ctx context.Context, firstMessageID, lastMessageID int64, pageSize int, pageToken []byte) ([]*QueueMessage, []byte, error)
ReadMessagesFromDLQ mocks base method.
func (*MockQueueManager) UpdateAckLevel ¶ added in v0.23.1
func (m *MockQueueManager) UpdateAckLevel(ctx context.Context, messageID int64, clusterName string) error
UpdateAckLevel mocks base method.
func (*MockQueueManager) UpdateDLQAckLevel ¶ added in v0.23.1
func (m *MockQueueManager) UpdateDLQAckLevel(ctx context.Context, messageID int64, clusterName string) error
UpdateDLQAckLevel mocks base method.
type MockQueueManagerMockRecorder ¶ added in v0.23.1
type MockQueueManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockQueueManagerMockRecorder is the mock recorder for MockQueueManager.
func (*MockQueueManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockQueueManagerMockRecorder) DeleteMessageFromDLQ ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) DeleteMessageFromDLQ(ctx, messageID any) *gomock.Call
DeleteMessageFromDLQ indicates an expected call of DeleteMessageFromDLQ.
func (*MockQueueManagerMockRecorder) DeleteMessagesBefore ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) DeleteMessagesBefore(ctx, messageID any) *gomock.Call
DeleteMessagesBefore indicates an expected call of DeleteMessagesBefore.
func (*MockQueueManagerMockRecorder) EnqueueMessage ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) EnqueueMessage(ctx, messagePayload any) *gomock.Call
EnqueueMessage indicates an expected call of EnqueueMessage.
func (*MockQueueManagerMockRecorder) EnqueueMessageToDLQ ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) EnqueueMessageToDLQ(ctx, messagePayload any) *gomock.Call
EnqueueMessageToDLQ indicates an expected call of EnqueueMessageToDLQ.
func (*MockQueueManagerMockRecorder) GetAckLevels ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) GetAckLevels(ctx any) *gomock.Call
GetAckLevels indicates an expected call of GetAckLevels.
func (*MockQueueManagerMockRecorder) GetDLQAckLevels ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) GetDLQAckLevels(ctx any) *gomock.Call
GetDLQAckLevels indicates an expected call of GetDLQAckLevels.
func (*MockQueueManagerMockRecorder) GetDLQSize ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) GetDLQSize(ctx any) *gomock.Call
GetDLQSize indicates an expected call of GetDLQSize.
func (*MockQueueManagerMockRecorder) RangeDeleteMessagesFromDLQ ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) RangeDeleteMessagesFromDLQ(ctx, firstMessageID, lastMessageID any) *gomock.Call
RangeDeleteMessagesFromDLQ indicates an expected call of RangeDeleteMessagesFromDLQ.
func (*MockQueueManagerMockRecorder) ReadMessages ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) ReadMessages(ctx, lastMessageID, maxCount any) *gomock.Call
ReadMessages indicates an expected call of ReadMessages.
func (*MockQueueManagerMockRecorder) ReadMessagesFromDLQ ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) ReadMessagesFromDLQ(ctx, firstMessageID, lastMessageID, pageSize, pageToken any) *gomock.Call
ReadMessagesFromDLQ indicates an expected call of ReadMessagesFromDLQ.
func (*MockQueueManagerMockRecorder) UpdateAckLevel ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) UpdateAckLevel(ctx, messageID, clusterName any) *gomock.Call
UpdateAckLevel indicates an expected call of UpdateAckLevel.
func (*MockQueueManagerMockRecorder) UpdateDLQAckLevel ¶ added in v0.23.1
func (mr *MockQueueManagerMockRecorder) UpdateDLQAckLevel(ctx, messageID, clusterName any) *gomock.Call
UpdateDLQAckLevel indicates an expected call of UpdateDLQAckLevel.
type MockRetryer ¶ added in v1.2.5
type MockRetryer struct {
// contains filtered or unexported fields
}
MockRetryer is a mock of Retryer interface.
func NewMockRetryer ¶ added in v1.2.5
func NewMockRetryer(ctrl *gomock.Controller) *MockRetryer
NewMockRetryer creates a new mock instance.
func (*MockRetryer) CompleteHistoryTask ¶ added in v1.3.0
func (m *MockRetryer) CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
CompleteHistoryTask mocks base method.
func (*MockRetryer) DeleteCurrentWorkflowExecution ¶ added in v1.2.5
func (m *MockRetryer) DeleteCurrentWorkflowExecution(arg0 context.Context, arg1 *DeleteCurrentWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution mocks base method.
func (*MockRetryer) DeleteWorkflowExecution ¶ added in v1.2.5
func (m *MockRetryer) DeleteWorkflowExecution(arg0 context.Context, arg1 *DeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution mocks base method.
func (*MockRetryer) EXPECT ¶ added in v1.2.5
func (m *MockRetryer) EXPECT() *MockRetryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRetryer) GetCurrentExecution ¶ added in v1.2.5
func (m *MockRetryer) GetCurrentExecution(arg0 context.Context, arg1 *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
GetCurrentExecution mocks base method.
func (*MockRetryer) GetHistoryTasks ¶ added in v1.3.0
func (m *MockRetryer) GetHistoryTasks(arg0 context.Context, arg1 *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
GetHistoryTasks mocks base method.
func (*MockRetryer) GetShardID ¶ added in v1.2.5
func (m *MockRetryer) GetShardID() int
GetShardID mocks base method.
func (*MockRetryer) GetWorkflowExecution ¶ added in v1.2.5
func (m *MockRetryer) GetWorkflowExecution(arg0 context.Context, arg1 *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
GetWorkflowExecution mocks base method.
func (*MockRetryer) IsWorkflowExecutionExists ¶ added in v1.2.5
func (m *MockRetryer) IsWorkflowExecutionExists(arg0 context.Context, arg1 *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
IsWorkflowExecutionExists mocks base method.
func (*MockRetryer) ListConcreteExecutions ¶ added in v1.2.5
func (m *MockRetryer) ListConcreteExecutions(arg0 context.Context, arg1 *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
ListConcreteExecutions mocks base method.
func (*MockRetryer) ListCurrentExecutions ¶ added in v1.2.5
func (m *MockRetryer) ListCurrentExecutions(arg0 context.Context, arg1 *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
ListCurrentExecutions mocks base method.
func (*MockRetryer) ReadHistoryBranch ¶ added in v1.2.5
func (m *MockRetryer) ReadHistoryBranch(arg0 context.Context, arg1 *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
ReadHistoryBranch mocks base method.
type MockRetryerMockRecorder ¶ added in v1.2.5
type MockRetryerMockRecorder struct {
// contains filtered or unexported fields
}
MockRetryerMockRecorder is the mock recorder for MockRetryer.
func (*MockRetryerMockRecorder) CompleteHistoryTask ¶ added in v1.3.0
func (mr *MockRetryerMockRecorder) CompleteHistoryTask(ctx, request any) *gomock.Call
CompleteHistoryTask indicates an expected call of CompleteHistoryTask.
func (*MockRetryerMockRecorder) DeleteCurrentWorkflowExecution ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) DeleteCurrentWorkflowExecution(arg0, arg1 any) *gomock.Call
DeleteCurrentWorkflowExecution indicates an expected call of DeleteCurrentWorkflowExecution.
func (*MockRetryerMockRecorder) DeleteWorkflowExecution ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) DeleteWorkflowExecution(arg0, arg1 any) *gomock.Call
DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (*MockRetryerMockRecorder) GetCurrentExecution ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) GetCurrentExecution(arg0, arg1 any) *gomock.Call
GetCurrentExecution indicates an expected call of GetCurrentExecution.
func (*MockRetryerMockRecorder) GetHistoryTasks ¶ added in v1.3.0
func (mr *MockRetryerMockRecorder) GetHistoryTasks(arg0, arg1 any) *gomock.Call
GetHistoryTasks indicates an expected call of GetHistoryTasks.
func (*MockRetryerMockRecorder) GetShardID ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) GetShardID() *gomock.Call
GetShardID indicates an expected call of GetShardID.
func (*MockRetryerMockRecorder) GetWorkflowExecution ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) GetWorkflowExecution(arg0, arg1 any) *gomock.Call
GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
func (*MockRetryerMockRecorder) IsWorkflowExecutionExists ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) IsWorkflowExecutionExists(arg0, arg1 any) *gomock.Call
IsWorkflowExecutionExists indicates an expected call of IsWorkflowExecutionExists.
func (*MockRetryerMockRecorder) ListConcreteExecutions ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) ListConcreteExecutions(arg0, arg1 any) *gomock.Call
ListConcreteExecutions indicates an expected call of ListConcreteExecutions.
func (*MockRetryerMockRecorder) ListCurrentExecutions ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) ListCurrentExecutions(arg0, arg1 any) *gomock.Call
ListCurrentExecutions indicates an expected call of ListCurrentExecutions.
func (*MockRetryerMockRecorder) ReadHistoryBranch ¶ added in v1.2.5
func (mr *MockRetryerMockRecorder) ReadHistoryBranch(arg0, arg1 any) *gomock.Call
ReadHistoryBranch indicates an expected call of ReadHistoryBranch.
type MockShardManager ¶ added in v0.23.1
type MockShardManager struct {
// contains filtered or unexported fields
}
MockShardManager is a mock of ShardManager interface.
func NewMockShardManager ¶ added in v0.23.1
func NewMockShardManager(ctrl *gomock.Controller) *MockShardManager
NewMockShardManager creates a new mock instance.
func (*MockShardManager) Close ¶ added in v0.23.1
func (m *MockShardManager) Close()
Close mocks base method.
func (*MockShardManager) CreateShard ¶ added in v0.23.1
func (m *MockShardManager) CreateShard(ctx context.Context, request *CreateShardRequest) error
CreateShard mocks base method.
func (*MockShardManager) EXPECT ¶ added in v0.23.1
func (m *MockShardManager) EXPECT() *MockShardManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockShardManager) GetName ¶ added in v0.23.1
func (m *MockShardManager) GetName() string
GetName mocks base method.
func (*MockShardManager) GetShard ¶ added in v0.23.1
func (m *MockShardManager) GetShard(ctx context.Context, request *GetShardRequest) (*GetShardResponse, error)
GetShard mocks base method.
func (*MockShardManager) UpdateShard ¶ added in v0.23.1
func (m *MockShardManager) UpdateShard(ctx context.Context, request *UpdateShardRequest) error
UpdateShard mocks base method.
type MockShardManagerMockRecorder ¶ added in v0.23.1
type MockShardManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockShardManagerMockRecorder is the mock recorder for MockShardManager.
func (*MockShardManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockShardManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockShardManagerMockRecorder) CreateShard ¶ added in v0.23.1
func (mr *MockShardManagerMockRecorder) CreateShard(ctx, request any) *gomock.Call
CreateShard indicates an expected call of CreateShard.
func (*MockShardManagerMockRecorder) GetName ¶ added in v0.23.1
func (mr *MockShardManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockShardManagerMockRecorder) GetShard ¶ added in v0.23.1
func (mr *MockShardManagerMockRecorder) GetShard(ctx, request any) *gomock.Call
GetShard indicates an expected call of GetShard.
func (*MockShardManagerMockRecorder) UpdateShard ¶ added in v0.23.1
func (mr *MockShardManagerMockRecorder) UpdateShard(ctx, request any) *gomock.Call
UpdateShard indicates an expected call of UpdateShard.
type MockShardStore ¶ added in v1.2.10
type MockShardStore struct {
// contains filtered or unexported fields
}
MockShardStore is a mock of ShardStore interface.
func NewMockShardStore ¶ added in v1.2.10
func NewMockShardStore(ctrl *gomock.Controller) *MockShardStore
NewMockShardStore creates a new mock instance.
func (*MockShardStore) Close ¶ added in v1.2.10
func (m *MockShardStore) Close()
Close mocks base method.
func (*MockShardStore) CreateShard ¶ added in v1.2.10
func (m *MockShardStore) CreateShard(ctx context.Context, request *InternalCreateShardRequest) error
CreateShard mocks base method.
func (*MockShardStore) EXPECT ¶ added in v1.2.10
func (m *MockShardStore) EXPECT() *MockShardStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockShardStore) GetName ¶ added in v1.2.10
func (m *MockShardStore) GetName() string
GetName mocks base method.
func (*MockShardStore) GetShard ¶ added in v1.2.10
func (m *MockShardStore) GetShard(ctx context.Context, request *InternalGetShardRequest) (*InternalGetShardResponse, error)
GetShard mocks base method.
func (*MockShardStore) UpdateShard ¶ added in v1.2.10
func (m *MockShardStore) UpdateShard(ctx context.Context, request *InternalUpdateShardRequest) error
UpdateShard mocks base method.
type MockShardStoreMockRecorder ¶ added in v1.2.10
type MockShardStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockShardStoreMockRecorder is the mock recorder for MockShardStore.
func (*MockShardStoreMockRecorder) Close ¶ added in v1.2.10
func (mr *MockShardStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockShardStoreMockRecorder) CreateShard ¶ added in v1.2.10
func (mr *MockShardStoreMockRecorder) CreateShard(ctx, request any) *gomock.Call
CreateShard indicates an expected call of CreateShard.
func (*MockShardStoreMockRecorder) GetName ¶ added in v1.2.10
func (mr *MockShardStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockShardStoreMockRecorder) GetShard ¶ added in v1.2.10
func (mr *MockShardStoreMockRecorder) GetShard(ctx, request any) *gomock.Call
GetShard indicates an expected call of GetShard.
func (*MockShardStoreMockRecorder) UpdateShard ¶ added in v1.2.10
func (mr *MockShardStoreMockRecorder) UpdateShard(ctx, request any) *gomock.Call
UpdateShard indicates an expected call of UpdateShard.
type MockTask ¶ added in v0.23.1
type MockTask struct {
// contains filtered or unexported fields
}
MockTask is a mock of Task interface.
func NewMockTask ¶ added in v0.23.1
func NewMockTask(ctrl *gomock.Controller) *MockTask
NewMockTask creates a new mock instance.
func (*MockTask) EXPECT ¶ added in v0.23.1
func (m *MockTask) EXPECT() *MockTaskMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTask) GetDomainID ¶ added in v1.2.18
GetDomainID mocks base method.
func (*MockTask) GetTaskCategory ¶ added in v1.3.0
func (m *MockTask) GetTaskCategory() HistoryTaskCategory
GetTaskCategory mocks base method.
func (*MockTask) GetTaskKey ¶ added in v1.3.1
func (m *MockTask) GetTaskKey() HistoryTaskKey
GetTaskKey mocks base method.
func (*MockTask) GetTaskType ¶ added in v1.2.18
GetTaskType mocks base method.
func (*MockTask) GetVersion ¶ added in v0.23.1
GetVersion mocks base method.
func (*MockTask) GetVisibilityTimestamp ¶ added in v0.23.1
GetVisibilityTimestamp mocks base method.
func (*MockTask) GetWorkflowID ¶ added in v1.2.18
GetWorkflowID mocks base method.
func (*MockTask) SetVersion ¶ added in v0.23.1
SetVersion mocks base method.
func (*MockTask) SetVisibilityTimestamp ¶ added in v0.23.1
SetVisibilityTimestamp mocks base method.
func (*MockTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (m *MockTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
ToInternalReplicationTaskInfo mocks base method.
func (*MockTask) ToTimerTaskInfo ¶ added in v1.2.18
func (m *MockTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
ToTimerTaskInfo mocks base method.
func (*MockTask) ToTransferTaskInfo ¶ added in v1.2.18
func (m *MockTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
ToTransferTaskInfo mocks base method.
type MockTaskManager ¶ added in v0.23.1
type MockTaskManager struct {
// contains filtered or unexported fields
}
MockTaskManager is a mock of TaskManager interface.
func NewMockTaskManager ¶ added in v0.23.1
func NewMockTaskManager(ctrl *gomock.Controller) *MockTaskManager
NewMockTaskManager creates a new mock instance.
func (*MockTaskManager) Close ¶ added in v0.23.1
func (m *MockTaskManager) Close()
Close mocks base method.
func (*MockTaskManager) CompleteTask ¶ added in v0.23.1
func (m *MockTaskManager) CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
CompleteTask mocks base method.
func (*MockTaskManager) CompleteTasksLessThan ¶ added in v0.23.1
func (m *MockTaskManager) CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
CompleteTasksLessThan mocks base method.
func (*MockTaskManager) CreateTasks ¶ added in v0.23.1
func (m *MockTaskManager) CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
CreateTasks mocks base method.
func (*MockTaskManager) DeleteTaskList ¶ added in v0.23.1
func (m *MockTaskManager) DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
DeleteTaskList mocks base method.
func (*MockTaskManager) EXPECT ¶ added in v0.23.1
func (m *MockTaskManager) EXPECT() *MockTaskManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskManager) GetName ¶ added in v0.23.1
func (m *MockTaskManager) GetName() string
GetName mocks base method.
func (*MockTaskManager) GetOrphanTasks ¶ added in v0.23.1
func (m *MockTaskManager) GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
GetOrphanTasks mocks base method.
func (*MockTaskManager) GetTaskList ¶ added in v1.2.15
func (m *MockTaskManager) GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
GetTaskList mocks base method.
func (*MockTaskManager) GetTaskListSize ¶ added in v1.2.6
func (m *MockTaskManager) GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
GetTaskListSize mocks base method.
func (*MockTaskManager) GetTasks ¶ added in v0.23.1
func (m *MockTaskManager) GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
GetTasks mocks base method.
func (*MockTaskManager) LeaseTaskList ¶ added in v0.23.1
func (m *MockTaskManager) LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
LeaseTaskList mocks base method.
func (*MockTaskManager) ListTaskList ¶ added in v0.23.1
func (m *MockTaskManager) ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
ListTaskList mocks base method.
func (*MockTaskManager) UpdateTaskList ¶ added in v0.23.1
func (m *MockTaskManager) UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
UpdateTaskList mocks base method.
type MockTaskManagerMockRecorder ¶ added in v0.23.1
type MockTaskManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskManagerMockRecorder is the mock recorder for MockTaskManager.
func (*MockTaskManagerMockRecorder) Close ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTaskManagerMockRecorder) CompleteTask ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) CompleteTask(ctx, request any) *gomock.Call
CompleteTask indicates an expected call of CompleteTask.
func (*MockTaskManagerMockRecorder) CompleteTasksLessThan ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) CompleteTasksLessThan(ctx, request any) *gomock.Call
CompleteTasksLessThan indicates an expected call of CompleteTasksLessThan.
func (*MockTaskManagerMockRecorder) CreateTasks ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) CreateTasks(ctx, request any) *gomock.Call
CreateTasks indicates an expected call of CreateTasks.
func (*MockTaskManagerMockRecorder) DeleteTaskList ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) DeleteTaskList(ctx, request any) *gomock.Call
DeleteTaskList indicates an expected call of DeleteTaskList.
func (*MockTaskManagerMockRecorder) GetName ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockTaskManagerMockRecorder) GetOrphanTasks ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) GetOrphanTasks(ctx, request any) *gomock.Call
GetOrphanTasks indicates an expected call of GetOrphanTasks.
func (*MockTaskManagerMockRecorder) GetTaskList ¶ added in v1.2.15
func (mr *MockTaskManagerMockRecorder) GetTaskList(ctx, request any) *gomock.Call
GetTaskList indicates an expected call of GetTaskList.
func (*MockTaskManagerMockRecorder) GetTaskListSize ¶ added in v1.2.6
func (mr *MockTaskManagerMockRecorder) GetTaskListSize(ctx, request any) *gomock.Call
GetTaskListSize indicates an expected call of GetTaskListSize.
func (*MockTaskManagerMockRecorder) GetTasks ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) GetTasks(ctx, request any) *gomock.Call
GetTasks indicates an expected call of GetTasks.
func (*MockTaskManagerMockRecorder) LeaseTaskList ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) LeaseTaskList(ctx, request any) *gomock.Call
LeaseTaskList indicates an expected call of LeaseTaskList.
func (*MockTaskManagerMockRecorder) ListTaskList ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) ListTaskList(ctx, request any) *gomock.Call
ListTaskList indicates an expected call of ListTaskList.
func (*MockTaskManagerMockRecorder) UpdateTaskList ¶ added in v0.23.1
func (mr *MockTaskManagerMockRecorder) UpdateTaskList(ctx, request any) *gomock.Call
UpdateTaskList indicates an expected call of UpdateTaskList.
type MockTaskMockRecorder ¶ added in v0.23.1
type MockTaskMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskMockRecorder is the mock recorder for MockTask.
func (*MockTaskMockRecorder) ByteSize ¶ added in v1.3.0
func (mr *MockTaskMockRecorder) ByteSize() *gomock.Call
ByteSize indicates an expected call of ByteSize.
func (*MockTaskMockRecorder) GetDomainID ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) GetDomainID() *gomock.Call
GetDomainID indicates an expected call of GetDomainID.
func (*MockTaskMockRecorder) GetRunID ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) GetRunID() *gomock.Call
GetRunID indicates an expected call of GetRunID.
func (*MockTaskMockRecorder) GetTaskCategory ¶ added in v1.3.0
func (mr *MockTaskMockRecorder) GetTaskCategory() *gomock.Call
GetTaskCategory indicates an expected call of GetTaskCategory.
func (*MockTaskMockRecorder) GetTaskID ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) GetTaskID() *gomock.Call
GetTaskID indicates an expected call of GetTaskID.
func (*MockTaskMockRecorder) GetTaskKey ¶ added in v1.3.1
func (mr *MockTaskMockRecorder) GetTaskKey() *gomock.Call
GetTaskKey indicates an expected call of GetTaskKey.
func (*MockTaskMockRecorder) GetTaskType ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) GetTaskType() *gomock.Call
GetTaskType indicates an expected call of GetTaskType.
func (*MockTaskMockRecorder) GetVersion ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) GetVersion() *gomock.Call
GetVersion indicates an expected call of GetVersion.
func (*MockTaskMockRecorder) GetVisibilityTimestamp ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) GetVisibilityTimestamp() *gomock.Call
GetVisibilityTimestamp indicates an expected call of GetVisibilityTimestamp.
func (*MockTaskMockRecorder) GetWorkflowID ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) GetWorkflowID() *gomock.Call
GetWorkflowID indicates an expected call of GetWorkflowID.
func (*MockTaskMockRecorder) SetTaskID ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) SetTaskID(id any) *gomock.Call
SetTaskID indicates an expected call of SetTaskID.
func (*MockTaskMockRecorder) SetVersion ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) SetVersion(version any) *gomock.Call
SetVersion indicates an expected call of SetVersion.
func (*MockTaskMockRecorder) SetVisibilityTimestamp ¶ added in v0.23.1
func (mr *MockTaskMockRecorder) SetVisibilityTimestamp(timestamp any) *gomock.Call
SetVisibilityTimestamp indicates an expected call of SetVisibilityTimestamp.
func (*MockTaskMockRecorder) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (mr *MockTaskMockRecorder) ToInternalReplicationTaskInfo() *gomock.Call
ToInternalReplicationTaskInfo indicates an expected call of ToInternalReplicationTaskInfo.
func (*MockTaskMockRecorder) ToTimerTaskInfo ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) ToTimerTaskInfo() *gomock.Call
ToTimerTaskInfo indicates an expected call of ToTimerTaskInfo.
func (*MockTaskMockRecorder) ToTransferTaskInfo ¶ added in v1.2.18
func (mr *MockTaskMockRecorder) ToTransferTaskInfo() *gomock.Call
ToTransferTaskInfo indicates an expected call of ToTransferTaskInfo.
type MockTaskStore ¶ added in v1.2.15
type MockTaskStore struct {
// contains filtered or unexported fields
}
MockTaskStore is a mock of TaskStore interface.
func NewMockTaskStore ¶ added in v1.2.15
func NewMockTaskStore(ctrl *gomock.Controller) *MockTaskStore
NewMockTaskStore creates a new mock instance.
func (*MockTaskStore) Close ¶ added in v1.2.15
func (m *MockTaskStore) Close()
Close mocks base method.
func (*MockTaskStore) CompleteTask ¶ added in v1.2.15
func (m *MockTaskStore) CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
CompleteTask mocks base method.
func (*MockTaskStore) CompleteTasksLessThan ¶ added in v1.2.15
func (m *MockTaskStore) CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
CompleteTasksLessThan mocks base method.
func (*MockTaskStore) CreateTasks ¶ added in v1.2.15
func (m *MockTaskStore) CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
CreateTasks mocks base method.
func (*MockTaskStore) DeleteTaskList ¶ added in v1.2.15
func (m *MockTaskStore) DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
DeleteTaskList mocks base method.
func (*MockTaskStore) EXPECT ¶ added in v1.2.15
func (m *MockTaskStore) EXPECT() *MockTaskStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskStore) GetName ¶ added in v1.2.15
func (m *MockTaskStore) GetName() string
GetName mocks base method.
func (*MockTaskStore) GetOrphanTasks ¶ added in v1.2.15
func (m *MockTaskStore) GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
GetOrphanTasks mocks base method.
func (*MockTaskStore) GetTaskList ¶ added in v1.2.15
func (m *MockTaskStore) GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
GetTaskList mocks base method.
func (*MockTaskStore) GetTaskListSize ¶ added in v1.2.15
func (m *MockTaskStore) GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
GetTaskListSize mocks base method.
func (*MockTaskStore) GetTasks ¶ added in v1.2.15
func (m *MockTaskStore) GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
GetTasks mocks base method.
func (*MockTaskStore) LeaseTaskList ¶ added in v1.2.15
func (m *MockTaskStore) LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
LeaseTaskList mocks base method.
func (*MockTaskStore) ListTaskList ¶ added in v1.2.15
func (m *MockTaskStore) ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
ListTaskList mocks base method.
func (*MockTaskStore) UpdateTaskList ¶ added in v1.2.15
func (m *MockTaskStore) UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
UpdateTaskList mocks base method.
type MockTaskStoreMockRecorder ¶ added in v1.2.15
type MockTaskStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskStoreMockRecorder is the mock recorder for MockTaskStore.
func (*MockTaskStoreMockRecorder) Close ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTaskStoreMockRecorder) CompleteTask ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) CompleteTask(ctx, request any) *gomock.Call
CompleteTask indicates an expected call of CompleteTask.
func (*MockTaskStoreMockRecorder) CompleteTasksLessThan ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) CompleteTasksLessThan(ctx, request any) *gomock.Call
CompleteTasksLessThan indicates an expected call of CompleteTasksLessThan.
func (*MockTaskStoreMockRecorder) CreateTasks ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) CreateTasks(ctx, request any) *gomock.Call
CreateTasks indicates an expected call of CreateTasks.
func (*MockTaskStoreMockRecorder) DeleteTaskList ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) DeleteTaskList(ctx, request any) *gomock.Call
DeleteTaskList indicates an expected call of DeleteTaskList.
func (*MockTaskStoreMockRecorder) GetName ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockTaskStoreMockRecorder) GetOrphanTasks ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) GetOrphanTasks(ctx, request any) *gomock.Call
GetOrphanTasks indicates an expected call of GetOrphanTasks.
func (*MockTaskStoreMockRecorder) GetTaskList ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) GetTaskList(ctx, request any) *gomock.Call
GetTaskList indicates an expected call of GetTaskList.
func (*MockTaskStoreMockRecorder) GetTaskListSize ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) GetTaskListSize(ctx, request any) *gomock.Call
GetTaskListSize indicates an expected call of GetTaskListSize.
func (*MockTaskStoreMockRecorder) GetTasks ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) GetTasks(ctx, request any) *gomock.Call
GetTasks indicates an expected call of GetTasks.
func (*MockTaskStoreMockRecorder) LeaseTaskList ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) LeaseTaskList(ctx, request any) *gomock.Call
LeaseTaskList indicates an expected call of LeaseTaskList.
func (*MockTaskStoreMockRecorder) ListTaskList ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) ListTaskList(ctx, request any) *gomock.Call
ListTaskList indicates an expected call of ListTaskList.
func (*MockTaskStoreMockRecorder) UpdateTaskList ¶ added in v1.2.15
func (mr *MockTaskStoreMockRecorder) UpdateTaskList(ctx, request any) *gomock.Call
UpdateTaskList indicates an expected call of UpdateTaskList.
type MockVisibilityManager ¶ added in v1.2.7
type MockVisibilityManager struct {
// contains filtered or unexported fields
}
MockVisibilityManager is a mock of VisibilityManager interface.
func NewMockVisibilityManager ¶ added in v1.2.7
func NewMockVisibilityManager(ctrl *gomock.Controller) *MockVisibilityManager
NewMockVisibilityManager creates a new mock instance.
func (*MockVisibilityManager) Close ¶ added in v1.2.7
func (m *MockVisibilityManager) Close()
Close mocks base method.
func (*MockVisibilityManager) CountWorkflowExecutions ¶ added in v1.2.7
func (m *MockVisibilityManager) CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
CountWorkflowExecutions mocks base method.
func (*MockVisibilityManager) DeleteUninitializedWorkflowExecution ¶ added in v1.2.7
func (m *MockVisibilityManager) DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
DeleteUninitializedWorkflowExecution mocks base method.
func (*MockVisibilityManager) DeleteWorkflowExecution ¶ added in v1.2.7
func (m *MockVisibilityManager) DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution mocks base method.
func (*MockVisibilityManager) EXPECT ¶ added in v1.2.7
func (m *MockVisibilityManager) EXPECT() *MockVisibilityManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVisibilityManager) GetClosedWorkflowExecution ¶ added in v1.2.7
func (m *MockVisibilityManager) GetClosedWorkflowExecution(ctx context.Context, request *GetClosedWorkflowExecutionRequest) (*GetClosedWorkflowExecutionResponse, error)
GetClosedWorkflowExecution mocks base method.
func (*MockVisibilityManager) GetName ¶ added in v1.2.7
func (m *MockVisibilityManager) GetName() string
GetName mocks base method.
func (*MockVisibilityManager) ListClosedWorkflowExecutions ¶ added in v1.2.7
func (m *MockVisibilityManager) ListClosedWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions mocks base method.
func (*MockVisibilityManager) ListClosedWorkflowExecutionsByStatus ¶ added in v1.2.7
func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByStatus(ctx context.Context, request *ListClosedWorkflowExecutionsByStatusRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByStatus mocks base method.
func (*MockVisibilityManager) ListClosedWorkflowExecutionsByType ¶ added in v1.2.7
func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByType mocks base method.
func (*MockVisibilityManager) ListClosedWorkflowExecutionsByWorkflowID ¶ added in v1.2.7
func (m *MockVisibilityManager) ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByWorkflowID mocks base method.
func (*MockVisibilityManager) ListOpenWorkflowExecutions ¶ added in v1.2.7
func (m *MockVisibilityManager) ListOpenWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutions mocks base method.
func (*MockVisibilityManager) ListOpenWorkflowExecutionsByType ¶ added in v1.2.7
func (m *MockVisibilityManager) ListOpenWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByType mocks base method.
func (*MockVisibilityManager) ListOpenWorkflowExecutionsByWorkflowID ¶ added in v1.2.7
func (m *MockVisibilityManager) ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByWorkflowID mocks base method.
func (*MockVisibilityManager) ListWorkflowExecutions ¶ added in v1.2.7
func (m *MockVisibilityManager) ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
ListWorkflowExecutions mocks base method.
func (*MockVisibilityManager) RecordWorkflowExecutionClosed ¶ added in v1.2.7
func (m *MockVisibilityManager) RecordWorkflowExecutionClosed(ctx context.Context, request *RecordWorkflowExecutionClosedRequest) error
RecordWorkflowExecutionClosed mocks base method.
func (*MockVisibilityManager) RecordWorkflowExecutionStarted ¶ added in v1.2.7
func (m *MockVisibilityManager) RecordWorkflowExecutionStarted(ctx context.Context, request *RecordWorkflowExecutionStartedRequest) error
RecordWorkflowExecutionStarted mocks base method.
func (*MockVisibilityManager) RecordWorkflowExecutionUninitialized ¶ added in v1.2.7
func (m *MockVisibilityManager) RecordWorkflowExecutionUninitialized(ctx context.Context, request *RecordWorkflowExecutionUninitializedRequest) error
RecordWorkflowExecutionUninitialized mocks base method.
func (*MockVisibilityManager) ScanWorkflowExecutions ¶ added in v1.2.7
func (m *MockVisibilityManager) ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
ScanWorkflowExecutions mocks base method.
func (*MockVisibilityManager) UpsertWorkflowExecution ¶ added in v1.2.7
func (m *MockVisibilityManager) UpsertWorkflowExecution(ctx context.Context, request *UpsertWorkflowExecutionRequest) error
UpsertWorkflowExecution mocks base method.
type MockVisibilityManagerMockRecorder ¶ added in v1.2.7
type MockVisibilityManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockVisibilityManagerMockRecorder is the mock recorder for MockVisibilityManager.
func (*MockVisibilityManagerMockRecorder) Close ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockVisibilityManagerMockRecorder) CountWorkflowExecutions ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) CountWorkflowExecutions(ctx, request any) *gomock.Call
CountWorkflowExecutions indicates an expected call of CountWorkflowExecutions.
func (*MockVisibilityManagerMockRecorder) DeleteUninitializedWorkflowExecution ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) DeleteUninitializedWorkflowExecution(ctx, request any) *gomock.Call
DeleteUninitializedWorkflowExecution indicates an expected call of DeleteUninitializedWorkflowExecution.
func (*MockVisibilityManagerMockRecorder) DeleteWorkflowExecution ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (*MockVisibilityManagerMockRecorder) GetClosedWorkflowExecution ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) GetClosedWorkflowExecution(ctx, request any) *gomock.Call
GetClosedWorkflowExecution indicates an expected call of GetClosedWorkflowExecution.
func (*MockVisibilityManagerMockRecorder) GetName ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutions ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutions(ctx, request any) *gomock.Call
ListClosedWorkflowExecutions indicates an expected call of ListClosedWorkflowExecutions.
func (*MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByStatus ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByStatus(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByStatus indicates an expected call of ListClosedWorkflowExecutionsByStatus.
func (*MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByType ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByType(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByType indicates an expected call of ListClosedWorkflowExecutionsByType.
func (*MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByWorkflowID ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListClosedWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByWorkflowID indicates an expected call of ListClosedWorkflowExecutionsByWorkflowID.
func (*MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutions ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutions(ctx, request any) *gomock.Call
ListOpenWorkflowExecutions indicates an expected call of ListOpenWorkflowExecutions.
func (*MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByType ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByType(ctx, request any) *gomock.Call
ListOpenWorkflowExecutionsByType indicates an expected call of ListOpenWorkflowExecutionsByType.
func (*MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByWorkflowID ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListOpenWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
ListOpenWorkflowExecutionsByWorkflowID indicates an expected call of ListOpenWorkflowExecutionsByWorkflowID.
func (*MockVisibilityManagerMockRecorder) ListWorkflowExecutions ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ListWorkflowExecutions(ctx, request any) *gomock.Call
ListWorkflowExecutions indicates an expected call of ListWorkflowExecutions.
func (*MockVisibilityManagerMockRecorder) RecordWorkflowExecutionClosed ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionClosed(ctx, request any) *gomock.Call
RecordWorkflowExecutionClosed indicates an expected call of RecordWorkflowExecutionClosed.
func (*MockVisibilityManagerMockRecorder) RecordWorkflowExecutionStarted ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionStarted(ctx, request any) *gomock.Call
RecordWorkflowExecutionStarted indicates an expected call of RecordWorkflowExecutionStarted.
func (*MockVisibilityManagerMockRecorder) RecordWorkflowExecutionUninitialized ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionUninitialized(ctx, request any) *gomock.Call
RecordWorkflowExecutionUninitialized indicates an expected call of RecordWorkflowExecutionUninitialized.
func (*MockVisibilityManagerMockRecorder) ScanWorkflowExecutions ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) ScanWorkflowExecutions(ctx, request any) *gomock.Call
ScanWorkflowExecutions indicates an expected call of ScanWorkflowExecutions.
func (*MockVisibilityManagerMockRecorder) UpsertWorkflowExecution ¶ added in v1.2.7
func (mr *MockVisibilityManagerMockRecorder) UpsertWorkflowExecution(ctx, request any) *gomock.Call
UpsertWorkflowExecution indicates an expected call of UpsertWorkflowExecution.
type MockVisibilityStore ¶ added in v1.2.9
type MockVisibilityStore struct {
// contains filtered or unexported fields
}
MockVisibilityStore is a mock of VisibilityStore interface.
func NewMockVisibilityStore ¶ added in v1.2.9
func NewMockVisibilityStore(ctrl *gomock.Controller) *MockVisibilityStore
NewMockVisibilityStore creates a new mock instance.
func (*MockVisibilityStore) Close ¶ added in v1.2.9
func (m *MockVisibilityStore) Close()
Close mocks base method.
func (*MockVisibilityStore) CountWorkflowExecutions ¶ added in v1.2.9
func (m *MockVisibilityStore) CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
CountWorkflowExecutions mocks base method.
func (*MockVisibilityStore) DeleteUninitializedWorkflowExecution ¶ added in v1.2.9
func (m *MockVisibilityStore) DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
DeleteUninitializedWorkflowExecution mocks base method.
func (*MockVisibilityStore) DeleteWorkflowExecution ¶ added in v1.2.9
func (m *MockVisibilityStore) DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
DeleteWorkflowExecution mocks base method.
func (*MockVisibilityStore) EXPECT ¶ added in v1.2.9
func (m *MockVisibilityStore) EXPECT() *MockVisibilityStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVisibilityStore) GetClosedWorkflowExecution ¶ added in v1.2.9
func (m *MockVisibilityStore) GetClosedWorkflowExecution(ctx context.Context, request *InternalGetClosedWorkflowExecutionRequest) (*InternalGetClosedWorkflowExecutionResponse, error)
GetClosedWorkflowExecution mocks base method.
func (*MockVisibilityStore) GetName ¶ added in v1.2.9
func (m *MockVisibilityStore) GetName() string
GetName mocks base method.
func (*MockVisibilityStore) ListClosedWorkflowExecutions ¶ added in v1.2.9
func (m *MockVisibilityStore) ListClosedWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions mocks base method.
func (*MockVisibilityStore) ListClosedWorkflowExecutionsByStatus ¶ added in v1.2.9
func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByStatus(ctx context.Context, request *InternalListClosedWorkflowExecutionsByStatusRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByStatus mocks base method.
func (*MockVisibilityStore) ListClosedWorkflowExecutionsByType ¶ added in v1.2.9
func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByType mocks base method.
func (*MockVisibilityStore) ListClosedWorkflowExecutionsByWorkflowID ¶ added in v1.2.9
func (m *MockVisibilityStore) ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, request *InternalListWorkflowExecutionsByWorkflowIDRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByWorkflowID mocks base method.
func (*MockVisibilityStore) ListOpenWorkflowExecutions ¶ added in v1.2.9
func (m *MockVisibilityStore) ListOpenWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutions mocks base method.
func (*MockVisibilityStore) ListOpenWorkflowExecutionsByType ¶ added in v1.2.9
func (m *MockVisibilityStore) ListOpenWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByType mocks base method.
func (*MockVisibilityStore) ListOpenWorkflowExecutionsByWorkflowID ¶ added in v1.2.9
func (m *MockVisibilityStore) ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, request *InternalListWorkflowExecutionsByWorkflowIDRequest) (*InternalListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByWorkflowID mocks base method.
func (*MockVisibilityStore) ListWorkflowExecutions ¶ added in v1.2.9
func (m *MockVisibilityStore) ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
ListWorkflowExecutions mocks base method.
func (*MockVisibilityStore) RecordWorkflowExecutionClosed ¶ added in v1.2.9
func (m *MockVisibilityStore) RecordWorkflowExecutionClosed(ctx context.Context, request *InternalRecordWorkflowExecutionClosedRequest) error
RecordWorkflowExecutionClosed mocks base method.
func (*MockVisibilityStore) RecordWorkflowExecutionStarted ¶ added in v1.2.9
func (m *MockVisibilityStore) RecordWorkflowExecutionStarted(ctx context.Context, request *InternalRecordWorkflowExecutionStartedRequest) error
RecordWorkflowExecutionStarted mocks base method.
func (*MockVisibilityStore) RecordWorkflowExecutionUninitialized ¶ added in v1.2.9
func (m *MockVisibilityStore) RecordWorkflowExecutionUninitialized(ctx context.Context, request *InternalRecordWorkflowExecutionUninitializedRequest) error
RecordWorkflowExecutionUninitialized mocks base method.
func (*MockVisibilityStore) ScanWorkflowExecutions ¶ added in v1.2.9
func (m *MockVisibilityStore) ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
ScanWorkflowExecutions mocks base method.
func (*MockVisibilityStore) UpsertWorkflowExecution ¶ added in v1.2.9
func (m *MockVisibilityStore) UpsertWorkflowExecution(ctx context.Context, request *InternalUpsertWorkflowExecutionRequest) error
UpsertWorkflowExecution mocks base method.
type MockVisibilityStoreMockRecorder ¶ added in v1.2.9
type MockVisibilityStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockVisibilityStoreMockRecorder is the mock recorder for MockVisibilityStore.
func (*MockVisibilityStoreMockRecorder) Close ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockVisibilityStoreMockRecorder) CountWorkflowExecutions ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) CountWorkflowExecutions(ctx, request any) *gomock.Call
CountWorkflowExecutions indicates an expected call of CountWorkflowExecutions.
func (*MockVisibilityStoreMockRecorder) DeleteUninitializedWorkflowExecution ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) DeleteUninitializedWorkflowExecution(ctx, request any) *gomock.Call
DeleteUninitializedWorkflowExecution indicates an expected call of DeleteUninitializedWorkflowExecution.
func (*MockVisibilityStoreMockRecorder) DeleteWorkflowExecution ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call
DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (*MockVisibilityStoreMockRecorder) GetClosedWorkflowExecution ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) GetClosedWorkflowExecution(ctx, request any) *gomock.Call
GetClosedWorkflowExecution indicates an expected call of GetClosedWorkflowExecution.
func (*MockVisibilityStoreMockRecorder) GetName ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutions ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutions(ctx, request any) *gomock.Call
ListClosedWorkflowExecutions indicates an expected call of ListClosedWorkflowExecutions.
func (*MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByStatus ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByStatus(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByStatus indicates an expected call of ListClosedWorkflowExecutionsByStatus.
func (*MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByType ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByType(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByType indicates an expected call of ListClosedWorkflowExecutionsByType.
func (*MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByWorkflowID ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListClosedWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
ListClosedWorkflowExecutionsByWorkflowID indicates an expected call of ListClosedWorkflowExecutionsByWorkflowID.
func (*MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutions ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutions(ctx, request any) *gomock.Call
ListOpenWorkflowExecutions indicates an expected call of ListOpenWorkflowExecutions.
func (*MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByType ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByType(ctx, request any) *gomock.Call
ListOpenWorkflowExecutionsByType indicates an expected call of ListOpenWorkflowExecutionsByType.
func (*MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByWorkflowID ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListOpenWorkflowExecutionsByWorkflowID(ctx, request any) *gomock.Call
ListOpenWorkflowExecutionsByWorkflowID indicates an expected call of ListOpenWorkflowExecutionsByWorkflowID.
func (*MockVisibilityStoreMockRecorder) ListWorkflowExecutions ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ListWorkflowExecutions(ctx, request any) *gomock.Call
ListWorkflowExecutions indicates an expected call of ListWorkflowExecutions.
func (*MockVisibilityStoreMockRecorder) RecordWorkflowExecutionClosed ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionClosed(ctx, request any) *gomock.Call
RecordWorkflowExecutionClosed indicates an expected call of RecordWorkflowExecutionClosed.
func (*MockVisibilityStoreMockRecorder) RecordWorkflowExecutionStarted ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionStarted(ctx, request any) *gomock.Call
RecordWorkflowExecutionStarted indicates an expected call of RecordWorkflowExecutionStarted.
func (*MockVisibilityStoreMockRecorder) RecordWorkflowExecutionUninitialized ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) RecordWorkflowExecutionUninitialized(ctx, request any) *gomock.Call
RecordWorkflowExecutionUninitialized indicates an expected call of RecordWorkflowExecutionUninitialized.
func (*MockVisibilityStoreMockRecorder) ScanWorkflowExecutions ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) ScanWorkflowExecutions(ctx, request any) *gomock.Call
ScanWorkflowExecutions indicates an expected call of ScanWorkflowExecutions.
func (*MockVisibilityStoreMockRecorder) UpsertWorkflowExecution ¶ added in v1.2.9
func (mr *MockVisibilityStoreMockRecorder) UpsertWorkflowExecution(ctx, request any) *gomock.Call
UpsertWorkflowExecution indicates an expected call of UpsertWorkflowExecution.
type MutableStateStats ¶ added in v0.4.0
type MutableStateStats struct {
// Total size of mutable state
MutableStateSize int
// Breakdown of size into more granular stats
ExecutionInfoSize int
ActivityInfoSize int
TimerInfoSize int
ChildInfoSize int
SignalInfoSize int
BufferedEventsSize int
// Item count for various information captured within mutable state
ActivityInfoCount int
TimerInfoCount int
ChildInfoCount int
SignalInfoCount int
RequestCancelInfoCount int
BufferedEventsCount int
}
MutableStateStats is the size stats for MutableState
type MutableStateUpdateSessionStats ¶ added in v0.4.0
type MutableStateUpdateSessionStats struct {
MutableStateSize int // Total size of mutable state update
// Breakdown of mutable state size update for more granular stats
ExecutionInfoSize int
ActivityInfoSize int
TimerInfoSize int
ChildInfoSize int
SignalInfoSize int
BufferedEventsSize int
// Item counts in this session update
ActivityInfoCount int
TimerInfoCount int
ChildInfoCount int
SignalInfoCount int
RequestCancelInfoCount int
// Deleted item counts in this session update
DeleteActivityInfoCount int
DeleteTimerInfoCount int
DeleteChildInfoCount int
DeleteSignalInfoCount int
DeleteRequestCancelInfoCount int
TaskCountByCategory map[HistoryTaskCategory]int
}
MutableStateUpdateSessionStats is size stats for mutableState updating session
type OperationType ¶ added in v1.2.6
type OperationType string
type PayloadSerializer ¶ added in v0.5.7
type PayloadSerializer interface {
// serialize/deserialize history events
SerializeBatchEvents(batch []*types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeBatchEvents(data *DataBlob) ([]*types.HistoryEvent, error)
// serialize/deserialize a single history event
SerializeEvent(event *types.HistoryEvent, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeEvent(data *DataBlob) (*types.HistoryEvent, error)
// serialize/deserialize visibility memo fields
SerializeVisibilityMemo(memo *types.Memo, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeVisibilityMemo(data *DataBlob) (*types.Memo, error)
// serialize/deserialize reset points
SerializeResetPoints(event *types.ResetPoints, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeResetPoints(data *DataBlob) (*types.ResetPoints, error)
// serialize/deserialize bad binaries
SerializeBadBinaries(event *types.BadBinaries, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeBadBinaries(data *DataBlob) (*types.BadBinaries, error)
// serialize/deserialize version histories
SerializeVersionHistories(histories *types.VersionHistories, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeVersionHistories(data *DataBlob) (*types.VersionHistories, error)
// serialize/deserialize pending failover markers
SerializePendingFailoverMarkers(markers []*types.FailoverMarkerAttributes, encodingType constants.EncodingType) (*DataBlob, error)
DeserializePendingFailoverMarkers(data *DataBlob) ([]*types.FailoverMarkerAttributes, error)
// serialize/deserialize processing queue statesss
SerializeProcessingQueueStates(states *types.ProcessingQueueStates, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeProcessingQueueStates(data *DataBlob) (*types.ProcessingQueueStates, error)
// serialize/deserialize DynamicConfigBlob
SerializeDynamicConfigBlob(blob *types.DynamicConfigBlob, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeDynamicConfigBlob(data *DataBlob) (*types.DynamicConfigBlob, error)
// serialize/deserialize IsolationGroupConfiguration
SerializeIsolationGroups(event *types.IsolationGroupConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeIsolationGroups(data *DataBlob) (*types.IsolationGroupConfiguration, error)
// serialize/deserialize async workflow configuration
SerializeAsyncWorkflowsConfig(config *types.AsyncWorkflowConfiguration, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeAsyncWorkflowsConfig(data *DataBlob) (*types.AsyncWorkflowConfiguration, error)
// serialize/deserialize checksum
SerializeChecksum(sum checksum.Checksum, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeChecksum(data *DataBlob) (checksum.Checksum, error)
// serialize/deserialize active clusters config
SerializeActiveClusters(activeClusters *types.ActiveClusters, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeActiveClusters(data *DataBlob) (*types.ActiveClusters, error)
// serialize/deserialize active cluster selection policy
SerializeActiveClusterSelectionPolicy(policy *types.ActiveClusterSelectionPolicy, encodingType constants.EncodingType) (*DataBlob, error)
DeserializeActiveClusterSelectionPolicy(data *DataBlob) (*types.ActiveClusterSelectionPolicy, error)
}
PayloadSerializer is used by persistence to serialize/deserialize history event(s) and others It will only be used inside persistence, so that serialize/deserialize is transparent for application
func NewPayloadSerializer ¶ added in v0.5.7
func NewPayloadSerializer() PayloadSerializer
NewPayloadSerializer returns a PayloadSerializer
type PutReplicationTaskToDLQRequest ¶ added in v0.11.0
type PutReplicationTaskToDLQRequest struct {
SourceClusterName string
TaskInfo *ReplicationTaskInfo
DomainName string
}
PutReplicationTaskToDLQRequest is used to put a replication task to dlq
func (*PutReplicationTaskToDLQRequest) MetricTags ¶ added in v1.2.7
func (r *PutReplicationTaskToDLQRequest) MetricTags() []metrics.Tag
type Queue ¶ added in v0.9.3
type Queue interface {
Closeable
EnqueueMessage(ctx context.Context, messagePayload []byte, currentTimeStamp time.Time) error
ReadMessages(ctx context.Context, lastMessageID int64, maxCount int) ([]*InternalQueueMessage, error)
DeleteMessagesBefore(ctx context.Context, messageID int64) error
UpdateAckLevel(ctx context.Context, messageID int64, clusterName string, currentTimestamp time.Time) error
GetAckLevels(ctx context.Context) (map[string]int64, error)
EnqueueMessageToDLQ(ctx context.Context, messagePayload []byte, currentTimeStamp time.Time) error
ReadMessagesFromDLQ(ctx context.Context, firstMessageID int64, lastMessageID int64, pageSize int, pageToken []byte) ([]*InternalQueueMessage, []byte, error)
DeleteMessageFromDLQ(ctx context.Context, messageID int64) error
RangeDeleteMessagesFromDLQ(ctx context.Context, firstMessageID int64, lastMessageID int64) error
UpdateDLQAckLevel(ctx context.Context, messageID int64, clusterName string, currentTimestamp time.Time) error
GetDLQAckLevels(ctx context.Context) (map[string]int64, error)
GetDLQSize(ctx context.Context) (int64, error)
}
Queue is a store to enqueue and get messages
type QueueManager ¶ added in v0.16.0
type QueueManager interface {
Closeable
EnqueueMessage(ctx context.Context, messagePayload []byte) error
ReadMessages(ctx context.Context, lastMessageID int64, maxCount int) (QueueMessageList, error)
DeleteMessagesBefore(ctx context.Context, messageID int64) error
UpdateAckLevel(ctx context.Context, messageID int64, clusterName string) error
GetAckLevels(ctx context.Context) (map[string]int64, error)
EnqueueMessageToDLQ(ctx context.Context, messagePayload []byte) error
ReadMessagesFromDLQ(ctx context.Context, firstMessageID int64, lastMessageID int64, pageSize int, pageToken []byte) ([]*QueueMessage, []byte, error)
DeleteMessageFromDLQ(ctx context.Context, messageID int64) error
RangeDeleteMessagesFromDLQ(ctx context.Context, firstMessageID int64, lastMessageID int64) error
UpdateDLQAckLevel(ctx context.Context, messageID int64, clusterName string) error
GetDLQAckLevels(ctx context.Context) (map[string]int64, error)
GetDLQSize(ctx context.Context) (int64, error)
}
QueueManager is used to manage queue store
func NewQueueManager ¶ added in v0.16.0
func NewQueueManager( persistence Queue, ) QueueManager
NewQueueManager returns a new QueueManager
type QueueMessage ¶ added in v0.9.3
type QueueMessage struct {
ID int64 `json:"message_id"`
QueueType QueueType `json:"queue_type"`
Payload []byte `json:"message_payload"`
}
QueueMessage is the message that stores in the queue
func (*QueueMessage) ByteSize ¶ added in v1.3.0
func (r *QueueMessage) ByteSize() uint64
type QueueMessageList ¶ added in v1.2.7
type QueueMessageList []*QueueMessage
func (QueueMessageList) ByteSize ¶ added in v1.3.0
func (r QueueMessageList) ByteSize() uint64
func (QueueMessageList) Len ¶ added in v1.2.7
func (r QueueMessageList) Len() int
type QueueType ¶ added in v0.12.0
type QueueType int
QueueType is an enum that represents various queue types in persistence
type RangeCompleteHistoryTaskRequest ¶ added in v1.2.18
type RangeCompleteHistoryTaskRequest struct {
TaskCategory HistoryTaskCategory
InclusiveMinTaskKey HistoryTaskKey
ExclusiveMaxTaskKey HistoryTaskKey
PageSize int
}
RangeCompleteHistoryTaskRequest is used to complete a range of history tasks
func (RangeCompleteHistoryTaskRequest) MetricTags ¶ added in v1.3.0
func (r RangeCompleteHistoryTaskRequest) MetricTags() []metrics.Tag
type RangeCompleteHistoryTaskResponse ¶ added in v1.2.18
type RangeCompleteHistoryTaskResponse struct {
TasksCompleted int
}
type RangeDeleteReplicationTaskFromDLQRequest ¶ added in v0.12.0
type RangeDeleteReplicationTaskFromDLQRequest struct {
SourceClusterName string
InclusiveBeginTaskID int64
ExclusiveEndTaskID int64
PageSize int
}
RangeDeleteReplicationTaskFromDLQRequest is used to delete replication tasks from DLQ
type RangeDeleteReplicationTaskFromDLQResponse ¶ added in v0.23.1
type RangeDeleteReplicationTaskFromDLQResponse struct {
TasksCompleted int
}
RangeDeleteReplicationTaskFromDLQResponse is the response of RangeDeleteReplicationTaskFromDLQ
type ReadHistoryBranchByBatchResponse ¶ added in v0.5.0
type ReadHistoryBranchByBatchResponse struct {
// History events by batch
History []*types.History
// Token to read next page if there are more events beyond page size.
// Use this to set NextPageToken on ReadHistoryBranchRequest to read the next page.
// Empty means we have reached the last page, not need to continue
NextPageToken []byte
// Size of history read from store
Size int
// the first_event_id of last loaded batch
LastFirstEventID int64
}
ReadHistoryBranchByBatchResponse is the response to ReadHistoryBranchRequest
type ReadHistoryBranchRequest ¶ added in v0.5.0
type ReadHistoryBranchRequest struct {
// The branch to be read
BranchToken []byte
// Get the history nodes from MinEventID. Inclusive.
MinEventID int64
// Get the history nodes upto MaxEventID. Exclusive.
MaxEventID int64
// Maximum number of batches of events per page. Not that number of events in a batch >=1, it is not number of events per page.
// However for a single page, it is also possible that the returned events is less than PageSize (event zero events) due to stale events.
PageSize int
// Token to continue reading next page of history append transactions. Pass in empty slice for first page
NextPageToken []byte
// The shard to get history branch data
ShardID *int
DomainName string
}
ReadHistoryBranchRequest is used to read a history branch
func (ReadHistoryBranchRequest) MetricTags ¶ added in v1.2.7
func (r ReadHistoryBranchRequest) MetricTags() []metrics.Tag
type ReadHistoryBranchResponse ¶ added in v0.5.0
type ReadHistoryBranchResponse struct {
// History events
HistoryEvents []*types.HistoryEvent
// Token to read next page if there are more events beyond page size.
// Use this to set NextPageToken on ReadHistoryBranchRequest to read the next page.
// Empty means we have reached the last page, not need to continue
NextPageToken []byte
// Size of history read from store
Size int
// the first_event_id of last loaded batch
LastFirstEventID int64
}
ReadHistoryBranchResponse is the response to ReadHistoryBranchRequest
func (*ReadHistoryBranchResponse) Len ¶ added in v1.2.7
func (r *ReadHistoryBranchResponse) Len() int
type ReadRawHistoryBranchResponse ¶ added in v0.9.0
type ReadRawHistoryBranchResponse struct {
// HistoryEventBlobs history event blobs
HistoryEventBlobs []*DataBlob
// Token to read next page if there are more events beyond page size.
// Use this to set NextPageToken on ReadHistoryBranchRequest to read the next page.
// Empty means we have reached the last page, not need to continue
NextPageToken []byte
// Size of history read from store
Size int
}
ReadRawHistoryBranchResponse is the response to ReadHistoryBranchRequest
func (*ReadRawHistoryBranchResponse) Size2 ¶ added in v1.3.0
func (r *ReadRawHistoryBranchResponse) Size2() uint64
type RecordChildExecutionCompletedTask ¶ added in v0.24.0
type RecordChildExecutionCompletedTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TargetWorkflowID string
TargetRunID string
}
RecordChildExecutionCompletedTask identifies a task for recording the competion of a child workflow
func (*RecordChildExecutionCompletedTask) ByteSize ¶ added in v1.3.0
func (u *RecordChildExecutionCompletedTask) ByteSize() uint64
func (*RecordChildExecutionCompletedTask) GetTaskCategory ¶ added in v1.3.0
func (u *RecordChildExecutionCompletedTask) GetTaskCategory() HistoryTaskCategory
func (*RecordChildExecutionCompletedTask) GetTaskKey ¶ added in v1.3.1
func (u *RecordChildExecutionCompletedTask) GetTaskKey() HistoryTaskKey
func (*RecordChildExecutionCompletedTask) GetTaskType ¶ added in v1.2.18
func (u *RecordChildExecutionCompletedTask) GetTaskType() int
GetType returns the type of the record child execution completed task
func (*RecordChildExecutionCompletedTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *RecordChildExecutionCompletedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*RecordChildExecutionCompletedTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *RecordChildExecutionCompletedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*RecordChildExecutionCompletedTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *RecordChildExecutionCompletedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type RecordWorkflowClosedTask ¶ added in v0.24.0
type RecordWorkflowClosedTask struct {
WorkflowIdentifier
TaskData
}
RecordWorkflowClosedTask identifies a transfer task for writing visibility close execution record
func (*RecordWorkflowClosedTask) ByteSize ¶ added in v1.3.0
func (u *RecordWorkflowClosedTask) ByteSize() uint64
func (*RecordWorkflowClosedTask) GetTaskCategory ¶ added in v1.3.0
func (u *RecordWorkflowClosedTask) GetTaskCategory() HistoryTaskCategory
func (*RecordWorkflowClosedTask) GetTaskKey ¶ added in v1.3.1
func (u *RecordWorkflowClosedTask) GetTaskKey() HistoryTaskKey
func (*RecordWorkflowClosedTask) GetTaskType ¶ added in v1.2.18
func (u *RecordWorkflowClosedTask) GetTaskType() int
GetType returns the type of the record workflow closed task
func (*RecordWorkflowClosedTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *RecordWorkflowClosedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*RecordWorkflowClosedTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *RecordWorkflowClosedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*RecordWorkflowClosedTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *RecordWorkflowClosedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type RecordWorkflowExecutionClosedRequest ¶
type RecordWorkflowExecutionClosedRequest struct {
DomainUUID string
Domain string // not persisted, used as config filter key
Execution types.WorkflowExecution
WorkflowTypeName string
StartTimestamp int64
ExecutionTimestamp int64
CloseTimestamp int64
Status types.WorkflowExecutionCloseStatus
HistoryLength int64
RetentionSeconds int64
TaskID int64 // not persisted, used as condition update version for ES
Memo *types.Memo
TaskList string
IsCron bool
NumClusters int16
UpdateTimestamp int64
SearchAttributes map[string][]byte
ShardID int16
}
RecordWorkflowExecutionClosedRequest is used to add a record of a newly closed execution
type RecordWorkflowExecutionStartedRequest ¶
type RecordWorkflowExecutionStartedRequest struct {
DomainUUID string
Domain string // not persisted, used as config filter key
Execution types.WorkflowExecution
WorkflowTypeName string
StartTimestamp int64
ExecutionTimestamp int64
WorkflowTimeout int64 // not persisted, used for cassandra ttl
TaskID int64 // not persisted, used as condition update version for ES
Memo *types.Memo
TaskList string
IsCron bool
NumClusters int16
UpdateTimestamp int64 // unit is unix nano, consistent with start/execution timestamp, same in other requests
SearchAttributes map[string][]byte
ShardID int16
}
RecordWorkflowExecutionStartedRequest is used to add a record of a newly started execution
type RecordWorkflowExecutionUninitializedRequest ¶ added in v0.25.0
type RecordWorkflowExecutionUninitializedRequest struct {
DomainUUID string
Domain string
Execution types.WorkflowExecution
WorkflowTypeName string
UpdateTimestamp int64
ShardID int64
}
RecordWorkflowExecutionUninitializedRequest is used to add a record of a newly uninitialized execution
type RecordWorkflowStartedTask ¶ added in v0.5.7
type RecordWorkflowStartedTask struct {
WorkflowIdentifier
TaskData
}
RecordWorkflowStartedTask identifites a transfer task for writing visibility open execution record
func (*RecordWorkflowStartedTask) ByteSize ¶ added in v1.3.0
func (a *RecordWorkflowStartedTask) ByteSize() uint64
func (*RecordWorkflowStartedTask) GetTaskCategory ¶ added in v1.3.0
func (a *RecordWorkflowStartedTask) GetTaskCategory() HistoryTaskCategory
func (*RecordWorkflowStartedTask) GetTaskKey ¶ added in v1.3.1
func (a *RecordWorkflowStartedTask) GetTaskKey() HistoryTaskKey
func (*RecordWorkflowStartedTask) GetTaskType ¶ added in v1.2.18
func (a *RecordWorkflowStartedTask) GetTaskType() int
GetType returns the type of the record workflow started task
func (*RecordWorkflowStartedTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *RecordWorkflowStartedTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*RecordWorkflowStartedTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *RecordWorkflowStartedTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*RecordWorkflowStartedTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *RecordWorkflowStartedTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type ReplicationInfo ¶ added in v0.3.11
ReplicationInfo represents the information stored for last replication event details per cluster
type ReplicationState ¶ added in v0.3.11
type ReplicationState struct {
CurrentVersion int64
StartVersion int64
LastWriteVersion int64
LastWriteEventID int64
LastReplicationInfo map[string]*ReplicationInfo
}
ReplicationState represents mutable state information for global domains. This information is used by replication protocol when applying events from remote clusters TODO: remove this struct after all 2DC workflows complete
type ReplicationTaskInfo ¶ added in v0.3.11
type ReplicationTaskInfo struct {
DomainID string
WorkflowID string
RunID string
TaskID int64
TaskType int
FirstEventID int64
NextEventID int64
Version int64
ScheduledID int64
BranchToken []byte
NewRunBranchToken []byte
CreationTime int64
}
ReplicationTaskInfo describes the replication task created for replication of history events
func (*ReplicationTaskInfo) GetDomainID ¶ added in v0.9.0
func (t *ReplicationTaskInfo) GetDomainID() string
GetDomainID returns the domain ID for replication task
func (*ReplicationTaskInfo) GetRunID ¶ added in v0.9.0
func (t *ReplicationTaskInfo) GetRunID() string
GetRunID returns the run ID for replication task
func (*ReplicationTaskInfo) GetTaskID ¶ added in v0.3.11
func (t *ReplicationTaskInfo) GetTaskID() int64
GetTaskID returns the task ID for replication task
func (*ReplicationTaskInfo) GetTaskType ¶ added in v0.3.11
func (t *ReplicationTaskInfo) GetTaskType() int
GetTaskType returns the task type for replication task
func (*ReplicationTaskInfo) GetVersion ¶ added in v0.3.12
func (t *ReplicationTaskInfo) GetVersion() int64
GetVersion returns the task version for replication task
func (*ReplicationTaskInfo) GetVisibilityTimestamp ¶ added in v0.3.14
func (t *ReplicationTaskInfo) GetVisibilityTimestamp() time.Time
GetVisibilityTimestamp returns the task type for replication task
func (*ReplicationTaskInfo) GetWorkflowID ¶ added in v0.9.0
func (t *ReplicationTaskInfo) GetWorkflowID() string
GetWorkflowID returns the workflow ID for replication task
type RequestCancelInfo ¶
type RequestCancelInfo struct {
Version int64
InitiatedEventBatchID int64
InitiatedID int64
CancelRequestID string
}
RequestCancelInfo has details for pending external workflow cancellations
type ResetWorkflowTask ¶ added in v0.5.8
type ResetWorkflowTask struct {
WorkflowIdentifier
TaskData
}
ResetWorkflowTask identifites a transfer task to reset workflow
func (*ResetWorkflowTask) ByteSize ¶ added in v1.3.0
func (a *ResetWorkflowTask) ByteSize() uint64
func (*ResetWorkflowTask) GetTaskCategory ¶ added in v1.3.0
func (a *ResetWorkflowTask) GetTaskCategory() HistoryTaskCategory
func (*ResetWorkflowTask) GetTaskKey ¶ added in v1.3.1
func (a *ResetWorkflowTask) GetTaskKey() HistoryTaskKey
func (*ResetWorkflowTask) GetTaskType ¶ added in v1.2.18
func (a *ResetWorkflowTask) GetTaskType() int
GetType returns the type of the ResetWorkflowTask
func (*ResetWorkflowTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *ResetWorkflowTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*ResetWorkflowTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *ResetWorkflowTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*ResetWorkflowTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *ResetWorkflowTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type ResponseComparatorContextKey ¶ added in v1.2.7
type ResponseComparatorContextKey string
ResponseComparatorContextKey is for Pinot/ES response comparator. This struct will be passed into ctx as a key.
type Retryer ¶ added in v0.15.0
type Retryer interface {
ListConcreteExecutions(context.Context, *ListConcreteExecutionsRequest) (*ListConcreteExecutionsResponse, error)
ListCurrentExecutions(context.Context, *ListCurrentExecutionsRequest) (*ListCurrentExecutionsResponse, error)
GetWorkflowExecution(context.Context, *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error)
GetCurrentExecution(context.Context, *GetCurrentExecutionRequest) (*GetCurrentExecutionResponse, error)
IsWorkflowExecutionExists(context.Context, *IsWorkflowExecutionExistsRequest) (*IsWorkflowExecutionExistsResponse, error)
ReadHistoryBranch(context.Context, *ReadHistoryBranchRequest) (*ReadHistoryBranchResponse, error)
DeleteWorkflowExecution(context.Context, *DeleteWorkflowExecutionRequest) error
DeleteCurrentWorkflowExecution(context.Context, *DeleteCurrentWorkflowExecutionRequest) error
GetShardID() int
GetHistoryTasks(context.Context, *GetHistoryTasksRequest) (*GetHistoryTasksResponse, error)
CompleteHistoryTask(ctx context.Context, request *CompleteHistoryTaskRequest) error
}
Retryer is used to retry requests to persistence with provided retry policy
func NewPersistenceRetryer ¶ added in v0.15.0
func NewPersistenceRetryer( execManager ExecutionManager, historyManager HistoryManager, policy backoff.RetryPolicy, ) Retryer
NewPersistenceRetryer constructs a new Retryer
type ShardAlreadyExistError ¶
type ShardAlreadyExistError struct {
Msg string
}
ShardAlreadyExistError is returned when conditionally creating a shard fails
func (*ShardAlreadyExistError) Error ¶
func (e *ShardAlreadyExistError) Error() string
type ShardInfo ¶
type ShardInfo struct {
ShardID int `json:"shard_id"`
Owner string `json:"owner"`
RangeID int64 `json:"range_id"`
StolenSinceRenew int `json:"stolen_since_renew"`
UpdatedAt time.Time `json:"updated_at"`
ReplicationAckLevel int64 `json:"replication_ack_level"`
ReplicationDLQAckLevel map[string]int64 `json:"replication_dlq_ack_level"`
TransferAckLevel int64 `json:"transfer_ack_level"`
TimerAckLevel time.Time `json:"timer_ack_level"`
ClusterTransferAckLevel map[string]int64 `json:"cluster_transfer_ack_level"`
ClusterTimerAckLevel map[string]time.Time `json:"cluster_timer_ack_level"`
TransferProcessingQueueStates *types.ProcessingQueueStates `json:"transfer_processing_queue_states"`
TimerProcessingQueueStates *types.ProcessingQueueStates `json:"timer_processing_queue_states"`
ClusterReplicationLevel map[string]int64 `json:"cluster_replication_level"`
DomainNotificationVersion int64 `json:"domain_notification_version"`
PendingFailoverMarkers []*types.FailoverMarkerAttributes `json:"pending_failover_markers"`
QueueStates map[int32]*types.QueueState `json:"queue_states"`
}
ShardInfo describes a shard
func (*ShardInfo) ToNilSafeCopy ¶ added in v1.3.1
ToNilSafeCopy TODO: it seems that we just need a nil safe shardInfo, deep copy is not necessary
type ShardManager ¶
type ShardManager interface {
Closeable
GetName() string
CreateShard(ctx context.Context, request *CreateShardRequest) error
GetShard(ctx context.Context, request *GetShardRequest) (*GetShardResponse, error)
UpdateShard(ctx context.Context, request *UpdateShardRequest) error
}
ShardManager is used to manage all shards
func NewShardManager ¶ added in v0.16.0
func NewShardManager( persistence ShardStore, options ...ShardManagerOption, ) ShardManager
NewShardManager returns a new ShardManager
type ShardManagerOption ¶ added in v1.2.10
type ShardManagerOption func(manager *shardManager)
func WithSerializer ¶ added in v1.2.10
func WithSerializer(serializer PayloadSerializer) ShardManagerOption
type ShardOwnershipLostError ¶
ShardOwnershipLostError is returned when conditional update fails due to RangeID for the shard
func (*ShardOwnershipLostError) Error ¶
func (e *ShardOwnershipLostError) Error() string
type ShardStore ¶ added in v0.4.0
type ShardStore interface {
Closeable
GetName() string
CreateShard(ctx context.Context, request *InternalCreateShardRequest) error
GetShard(ctx context.Context, request *InternalGetShardRequest) (*InternalGetShardResponse, error)
UpdateShard(ctx context.Context, request *InternalUpdateShardRequest) error
}
ShardStore is the lower level of ShardManager
type SignalExecutionTask ¶ added in v0.3.6
type SignalExecutionTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TargetWorkflowID string
TargetRunID string
TargetChildWorkflowOnly bool
InitiatedID int64
}
SignalExecutionTask identifies a transfer task for signal execution
func (*SignalExecutionTask) ByteSize ¶ added in v1.3.0
func (u *SignalExecutionTask) ByteSize() uint64
func (*SignalExecutionTask) GetTaskCategory ¶ added in v1.3.0
func (u *SignalExecutionTask) GetTaskCategory() HistoryTaskCategory
func (*SignalExecutionTask) GetTaskKey ¶ added in v1.3.1
func (u *SignalExecutionTask) GetTaskKey() HistoryTaskKey
func (*SignalExecutionTask) GetTaskType ¶ added in v1.2.18
func (u *SignalExecutionTask) GetTaskType() int
GetType returns the type of the signal transfer task
func (*SignalExecutionTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *SignalExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*SignalExecutionTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *SignalExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*SignalExecutionTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *SignalExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type SignalInfo ¶ added in v0.3.6
type SignalInfo struct {
Version int64
InitiatedEventBatchID int64
InitiatedID int64
SignalRequestID string
SignalName string
Input []byte
Control []byte
}
SignalInfo has details for pending external workflow signal
type StartChildExecutionTask ¶
type StartChildExecutionTask struct {
WorkflowIdentifier
TaskData
TargetDomainID string
TargetWorkflowID string
InitiatedID int64
}
StartChildExecutionTask identifies a transfer task for starting child execution
func (*StartChildExecutionTask) ByteSize ¶ added in v1.3.0
func (u *StartChildExecutionTask) ByteSize() uint64
func (*StartChildExecutionTask) GetTaskCategory ¶ added in v1.3.0
func (u *StartChildExecutionTask) GetTaskCategory() HistoryTaskCategory
func (*StartChildExecutionTask) GetTaskKey ¶ added in v1.3.1
func (u *StartChildExecutionTask) GetTaskKey() HistoryTaskKey
func (*StartChildExecutionTask) GetTaskType ¶ added in v1.2.18
func (u *StartChildExecutionTask) GetTaskType() int
GetType returns the type of the start child transfer task
func (*StartChildExecutionTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *StartChildExecutionTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*StartChildExecutionTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *StartChildExecutionTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*StartChildExecutionTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *StartChildExecutionTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type SyncActivityTask ¶ added in v0.4.0
type SyncActivityTask struct {
WorkflowIdentifier
TaskData
ScheduledID int64
}
SyncActivityTask is the replication task created for shipping activity info to other clusters
func (*SyncActivityTask) ByteSize ¶ added in v1.3.0
func (a *SyncActivityTask) ByteSize() uint64
func (*SyncActivityTask) GetTaskCategory ¶ added in v1.3.0
func (a *SyncActivityTask) GetTaskCategory() HistoryTaskCategory
func (*SyncActivityTask) GetTaskKey ¶ added in v1.3.1
func (a *SyncActivityTask) GetTaskKey() HistoryTaskKey
func (*SyncActivityTask) GetTaskType ¶ added in v1.2.18
func (a *SyncActivityTask) GetTaskType() int
GetType returns the type of the sync activity task
func (*SyncActivityTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (a *SyncActivityTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*SyncActivityTask) ToTimerTaskInfo ¶ added in v1.2.18
func (a *SyncActivityTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*SyncActivityTask) ToTransferTaskInfo ¶ added in v1.2.18
func (a *SyncActivityTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type Task ¶
type Task interface {
GetTaskCategory() HistoryTaskCategory
GetTaskKey() HistoryTaskKey
GetTaskType() int
GetDomainID() string
GetWorkflowID() string
GetRunID() string
GetVersion() int64
SetVersion(version int64)
GetTaskID() int64
SetTaskID(id int64)
GetVisibilityTimestamp() time.Time
SetVisibilityTimestamp(timestamp time.Time)
ByteSize() uint64
ToTransferTaskInfo() (*TransferTaskInfo, error)
ToTimerTaskInfo() (*TimerTaskInfo, error)
ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
}
Task is the generic interface for workflow tasks
type TaskData ¶ added in v1.2.9
TaskData is common attributes for all tasks.
func (*TaskData) GetVersion ¶ added in v1.2.9
GetVersion returns the version of the task
func (*TaskData) GetVisibilityTimestamp ¶ added in v1.2.9
GetVisibilityTimestamp get the visibility timestamp
func (*TaskData) SetVersion ¶ added in v1.2.9
SetVersion sets the version of the task
func (*TaskData) SetVisibilityTimestamp ¶ added in v1.2.9
SetVisibilityTimestamp set the visibility timestamp
type TaskInfo ¶
type TaskInfo struct {
DomainID string
WorkflowID string
RunID string
TaskID int64
ScheduleID int64
ScheduleToStartTimeoutSeconds int32
Expiry time.Time
CreatedTime time.Time
PartitionConfig map[string]string
}
TaskInfo describes either activity or decision task
type TaskListInfo ¶
type TaskListInfo struct {
DomainID string
Name string
TaskType int
RangeID int64
AckLevel int64
Kind int
Expiry time.Time
LastUpdated time.Time
AdaptivePartitionConfig *TaskListPartitionConfig
}
TaskListInfo describes a state of a task list implementation.
type TaskListPartition ¶ added in v1.2.17
type TaskListPartition struct {
IsolationGroups []string
}
func (*TaskListPartition) ToInternalType ¶ added in v1.2.17
func (p *TaskListPartition) ToInternalType() *types.TaskListPartition
type TaskListPartitionConfig ¶ added in v1.2.15
type TaskListPartitionConfig struct {
Version int64
ReadPartitions map[int]*TaskListPartition
WritePartitions map[int]*TaskListPartition
}
TaskListPartitionConfig represents the configuration for task list partitions.
func (*TaskListPartitionConfig) ToInternalType ¶ added in v1.2.15
func (p *TaskListPartitionConfig) ToInternalType() *types.TaskListPartitionConfig
type TaskManager ¶
type TaskManager interface {
Closeable
GetName() string
LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
}
TaskManager is used to manage tasks
func NewTaskManager ¶ added in v0.16.0
func NewTaskManager( persistence TaskStore, ) TaskManager
NewTaskManager returns a new TaskManager
type TaskStore ¶ added in v0.4.0
type TaskStore interface {
Closeable
GetName() string
LeaseTaskList(ctx context.Context, request *LeaseTaskListRequest) (*LeaseTaskListResponse, error)
GetTaskList(ctx context.Context, request *GetTaskListRequest) (*GetTaskListResponse, error)
UpdateTaskList(ctx context.Context, request *UpdateTaskListRequest) (*UpdateTaskListResponse, error)
ListTaskList(ctx context.Context, request *ListTaskListRequest) (*ListTaskListResponse, error)
DeleteTaskList(ctx context.Context, request *DeleteTaskListRequest) error
GetTaskListSize(ctx context.Context, request *GetTaskListSizeRequest) (*GetTaskListSizeResponse, error)
CreateTasks(ctx context.Context, request *CreateTasksRequest) (*CreateTasksResponse, error)
GetTasks(ctx context.Context, request *GetTasksRequest) (*GetTasksResponse, error)
CompleteTask(ctx context.Context, request *CompleteTaskRequest) error
// CompleteTasksLessThan completes tasks less than or equal to the given task id
// This API takes a limit parameter which specifies the count of maxRows that
// can be deleted. This parameter may be ignored by the underlying storage, but
// its mandatory to specify it. On success this method returns the number of rows
// actually deleted. If the underlying storage doesn't support "limit", all rows
// less than or equal to taskID will be deleted.
// On success, this method returns:
// - number of rows actually deleted, if limit is honored
// - UnknownNumRowsDeleted, when all rows below value are deleted
CompleteTasksLessThan(ctx context.Context, request *CompleteTasksLessThanRequest) (*CompleteTasksLessThanResponse, error)
// GetOrphanTasks returns tasks that exist as records in the database but are part of task lists which
// _do not_ exist in the database. They are therefore unreachable and no longer represent valid items
// that can be legitimately acted upon.
GetOrphanTasks(ctx context.Context, request *GetOrphanTasksRequest) (*GetOrphanTasksResponse, error)
}
TaskStore is a lower level of TaskManager
type TimeoutError ¶
type TimeoutError struct {
Msg string
}
TimeoutError is returned when a write operation fails due to a timeout
func (*TimeoutError) Error ¶
func (e *TimeoutError) Error() string
type TimerInfo ¶
type TimerInfo struct {
Version int64
TimerID string
StartedID int64
ExpiryTime time.Time
TaskStatus int64
}
TimerInfo details - metadata about user timer info.
type TimerTaskInfo ¶
type TimerTaskInfo struct {
DomainID string
WorkflowID string
RunID string
VisibilityTimestamp time.Time
TaskID int64
TaskType int
TimeoutType int
EventID int64
ScheduleAttempt int64
Version int64
}
TimerTaskInfo describes a timer task.
func (*TimerTaskInfo) GetDomainID ¶ added in v0.9.0
func (t *TimerTaskInfo) GetDomainID() string
GetDomainID returns the domain ID for timer task
func (*TimerTaskInfo) GetRunID ¶ added in v0.9.0
func (t *TimerTaskInfo) GetRunID() string
GetRunID returns the run ID for timer task
func (*TimerTaskInfo) GetTaskID ¶ added in v0.3.12
func (t *TimerTaskInfo) GetTaskID() int64
GetTaskID returns the task ID for timer task
func (*TimerTaskInfo) GetTaskType ¶ added in v0.3.12
func (t *TimerTaskInfo) GetTaskType() int
GetTaskType returns the task type for timer task
func (*TimerTaskInfo) GetVersion ¶ added in v0.3.12
func (t *TimerTaskInfo) GetVersion() int64
GetVersion returns the task version for timer task
func (*TimerTaskInfo) GetVisibilityTimestamp ¶ added in v0.3.14
func (t *TimerTaskInfo) GetVisibilityTimestamp() time.Time
GetVisibilityTimestamp returns the task type for timer task
func (*TimerTaskInfo) GetWorkflowID ¶ added in v0.9.0
func (t *TimerTaskInfo) GetWorkflowID() string
GetWorkflowID returns the workflow ID for timer task
func (*TimerTaskInfo) String ¶ added in v0.3.14
func (t *TimerTaskInfo) String() string
String returns a string representation for timer task
func (*TimerTaskInfo) ToTask ¶ added in v1.2.18
func (t *TimerTaskInfo) ToTask() (Task, error)
type TransactionSizeLimitError ¶ added in v0.5.9
type TransactionSizeLimitError struct {
Msg string
}
TransactionSizeLimitError is returned when the transaction size is too large
func (*TransactionSizeLimitError) Error ¶ added in v0.5.9
func (e *TransactionSizeLimitError) Error() string
type TransferTaskInfo ¶
type TransferTaskInfo struct {
DomainID string
WorkflowID string
RunID string
VisibilityTimestamp time.Time
TaskID int64
TargetDomainID string
TargetDomainIDs map[string]struct{} // used for ApplyParentPolicy request
TargetWorkflowID string
TargetRunID string
TargetChildWorkflowOnly bool
TaskList string
TaskType int
ScheduleID int64
Version int64
RecordVisibility bool
}
TransferTaskInfo describes a transfer task
func (*TransferTaskInfo) GetDomainID ¶ added in v0.9.0
func (t *TransferTaskInfo) GetDomainID() string
GetDomainID returns the domain ID for transfer task
func (*TransferTaskInfo) GetRunID ¶ added in v0.9.0
func (t *TransferTaskInfo) GetRunID() string
GetRunID returns the run ID for transfer task
func (*TransferTaskInfo) GetTargetDomainIDs ¶ added in v0.24.0
func (t *TransferTaskInfo) GetTargetDomainIDs() map[string]struct{}
GetTargetDomainIDs returns the targetDomainIDs for applyParentPolicy
func (*TransferTaskInfo) GetTaskID ¶ added in v0.3.11
func (t *TransferTaskInfo) GetTaskID() int64
GetTaskID returns the task ID for transfer task
func (*TransferTaskInfo) GetTaskType ¶ added in v0.3.11
func (t *TransferTaskInfo) GetTaskType() int
GetTaskType returns the task type for transfer task
func (*TransferTaskInfo) GetVersion ¶ added in v0.3.12
func (t *TransferTaskInfo) GetVersion() int64
GetVersion returns the task version for transfer task
func (*TransferTaskInfo) GetVisibilityTimestamp ¶ added in v0.3.14
func (t *TransferTaskInfo) GetVisibilityTimestamp() time.Time
GetVisibilityTimestamp returns the task type for transfer task
func (*TransferTaskInfo) GetWorkflowID ¶ added in v0.9.0
func (t *TransferTaskInfo) GetWorkflowID() string
GetWorkflowID returns the workflow ID for transfer task
func (*TransferTaskInfo) String ¶ added in v0.3.14
func (t *TransferTaskInfo) String() string
String returns a string representation for transfer task
func (*TransferTaskInfo) ToTask ¶ added in v1.2.18
func (t *TransferTaskInfo) ToTask() (Task, error)
type UnknownEncodingTypeError ¶
type UnknownEncodingTypeError struct {
// contains filtered or unexported fields
}
UnknownEncodingTypeError is an error type for unknown or unsupported encoding type
func (*UnknownEncodingTypeError) Error ¶
func (e *UnknownEncodingTypeError) Error() string
type UpdateDomainRequest ¶
type UpdateDomainRequest struct {
Info *DomainInfo
Config *DomainConfig
ReplicationConfig *DomainReplicationConfig
ConfigVersion int64
FailoverVersion int64
FailoverNotificationVersion int64
PreviousFailoverVersion int64
FailoverEndTime *int64
LastUpdatedTime int64
NotificationVersion int64
}
UpdateDomainRequest is used to update domain
type UpdateDynamicConfigRequest ¶ added in v0.23.1
type UpdateDynamicConfigRequest struct {
Snapshot *DynamicConfigSnapshot
}
UpdateDynamicConfigRequest is a request to update dynamic config with snapshot
type UpdateShardRequest ¶
UpdateShardRequest is used to update shard information
type UpdateTaskListRequest ¶
type UpdateTaskListRequest struct {
TaskListInfo *TaskListInfo
DomainName string
CurrentTimeStamp time.Time
}
UpdateTaskListRequest is used to update task list implementation information
func (UpdateTaskListRequest) MetricTags ¶ added in v1.2.7
func (r UpdateTaskListRequest) MetricTags() []metrics.Tag
type UpdateTaskListResponse ¶
type UpdateTaskListResponse struct {
}
UpdateTaskListResponse is the response to UpdateTaskList
type UpdateWorkflowExecutionRequest ¶
type UpdateWorkflowExecutionRequest struct {
RangeID int64
Mode UpdateWorkflowMode
UpdateWorkflowMutation WorkflowMutation
NewWorkflowSnapshot *WorkflowSnapshot
WorkflowRequestMode CreateWorkflowRequestMode
Encoding constants.EncodingType // optional binary encoding type
DomainName string
}
UpdateWorkflowExecutionRequest is used to update a workflow execution
func (*UpdateWorkflowExecutionRequest) GetDomainName ¶ added in v1.2.7
func (r *UpdateWorkflowExecutionRequest) GetDomainName() string
func (*UpdateWorkflowExecutionRequest) GetExtraLogTags ¶ added in v1.2.7
func (r *UpdateWorkflowExecutionRequest) GetExtraLogTags() []tag.Tag
type UpdateWorkflowExecutionResponse ¶ added in v0.4.0
type UpdateWorkflowExecutionResponse struct {
MutableStateUpdateSessionStats *MutableStateUpdateSessionStats
}
UpdateWorkflowExecutionResponse is response for UpdateWorkflowExecutionRequest
type UpdateWorkflowMode ¶ added in v0.9.3
type UpdateWorkflowMode int
UpdateWorkflowMode update mode
const ( // UpdateWorkflowModeUpdateCurrent Update workflow, including current record // NOTE: update on current record is a condition update UpdateWorkflowModeUpdateCurrent UpdateWorkflowMode = iota // UpdateWorkflowModeBypassCurrent Update workflow, without current record // NOTE: current record CANNOT point to the workflow to be updated UpdateWorkflowModeBypassCurrent // UpdateWorkflowModeIgnoreCurrent Update workflow, ignoring current record // NOTE: current record may or may not point to the workflow // this mode should only be used for (re-)generating workflow tasks // and there's no other changes to the workflow UpdateWorkflowModeIgnoreCurrent )
Update Workflow Execution Mode
type UpsertWorkflowExecutionRequest ¶ added in v0.6.0
type UpsertWorkflowExecutionRequest struct {
DomainUUID string
Domain string // not persisted, used as config filter key
Execution types.WorkflowExecution
WorkflowTypeName string
StartTimestamp int64
ExecutionTimestamp int64
WorkflowTimeout int64 // not persisted, used for cassandra ttl
TaskID int64 // not persisted, used as condition update version for ES
Memo *types.Memo
TaskList string
IsCron bool
NumClusters int16
UpdateTimestamp int64
SearchAttributes map[string][]byte
ShardID int64
}
UpsertWorkflowExecutionRequest is used to upsert workflow execution
type UpsertWorkflowSearchAttributesTask ¶ added in v0.6.0
type UpsertWorkflowSearchAttributesTask struct {
WorkflowIdentifier
TaskData
}
UpsertWorkflowSearchAttributesTask identifies a transfer task for upsert search attributes
func (*UpsertWorkflowSearchAttributesTask) ByteSize ¶ added in v1.3.0
func (u *UpsertWorkflowSearchAttributesTask) ByteSize() uint64
func (*UpsertWorkflowSearchAttributesTask) GetTaskCategory ¶ added in v1.3.0
func (u *UpsertWorkflowSearchAttributesTask) GetTaskCategory() HistoryTaskCategory
func (*UpsertWorkflowSearchAttributesTask) GetTaskKey ¶ added in v1.3.1
func (u *UpsertWorkflowSearchAttributesTask) GetTaskKey() HistoryTaskKey
func (*UpsertWorkflowSearchAttributesTask) GetTaskType ¶ added in v1.2.18
func (u *UpsertWorkflowSearchAttributesTask) GetTaskType() int
GetType returns the type of the upsert search attributes transfer task
func (*UpsertWorkflowSearchAttributesTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *UpsertWorkflowSearchAttributesTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*UpsertWorkflowSearchAttributesTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *UpsertWorkflowSearchAttributesTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*UpsertWorkflowSearchAttributesTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *UpsertWorkflowSearchAttributesTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type UserTimerTask ¶
type UserTimerTask struct {
WorkflowIdentifier
TaskData
EventID int64
}
UserTimerTask identifies a timeout task.
func (*UserTimerTask) ByteSize ¶ added in v1.3.0
func (u *UserTimerTask) ByteSize() uint64
func (*UserTimerTask) GetTaskCategory ¶ added in v1.3.0
func (u *UserTimerTask) GetTaskCategory() HistoryTaskCategory
func (*UserTimerTask) GetTaskKey ¶ added in v1.3.1
func (u *UserTimerTask) GetTaskKey() HistoryTaskKey
func (*UserTimerTask) GetTaskType ¶ added in v1.2.18
func (u *UserTimerTask) GetTaskType() int
GetType returns the type of the timer task
func (*UserTimerTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *UserTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*UserTimerTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *UserTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*UserTimerTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *UserTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type VersionHistories ¶ added in v0.5.8
type VersionHistories struct {
CurrentVersionHistoryIndex int
Histories []*VersionHistory
}
VersionHistories contains a set of VersionHistory
func NewVersionHistories ¶ added in v0.5.8
func NewVersionHistories( versionHistory *VersionHistory, ) *VersionHistories
NewVersionHistories create a new version histories
func NewVersionHistoriesFromInternalType ¶ added in v0.18.0
func NewVersionHistoriesFromInternalType( input *types.VersionHistories, ) *VersionHistories
NewVersionHistoriesFromInternalType create a new version histories from internal type object
func (*VersionHistories) AddVersionHistory ¶ added in v0.9.3
func (h *VersionHistories) AddVersionHistory( v *VersionHistory, ) (bool, int, error)
AddVersionHistory add a version history and return the whether current branch is changed
func (*VersionHistories) Duplicate ¶ added in v0.9.3
func (h *VersionHistories) Duplicate() *VersionHistories
Duplicate duplicate VersionHistories
func (*VersionHistories) FindFirstVersionHistoryByItem ¶ added in v0.25.0
func (h *VersionHistories) FindFirstVersionHistoryByItem( item *VersionHistoryItem, ) (index int, history *VersionHistory, err error)
FindFirstVersionHistoryByItem find the first version history index and history which contains the given version history item
func (*VersionHistories) FindLCAVersionHistoryIndexAndItem ¶ added in v0.9.3
func (h *VersionHistories) FindLCAVersionHistoryIndexAndItem( incomingHistory *VersionHistory, ) (int, *VersionHistoryItem, error)
FindLCAVersionHistoryIndexAndItem finds the lowest common ancestor version history index along with corresponding item
func (*VersionHistories) GetCurrentVersionHistory ¶ added in v0.9.3
func (h *VersionHistories) GetCurrentVersionHistory() (*VersionHistory, error)
GetCurrentVersionHistory get the current version history
func (*VersionHistories) GetCurrentVersionHistoryIndex ¶ added in v0.9.3
func (h *VersionHistories) GetCurrentVersionHistoryIndex() int
GetCurrentVersionHistoryIndex get the current branch index
func (*VersionHistories) GetVersionHistory ¶ added in v0.9.3
func (h *VersionHistories) GetVersionHistory( branchIndex int, ) (*VersionHistory, error)
GetVersionHistory get the version history according to index provided
func (*VersionHistories) IsRebuilt ¶ added in v0.9.3
func (h *VersionHistories) IsRebuilt() (bool, error)
IsRebuilt returns true if the current branch index's last write version is not the largest among all branches' last write version
func (*VersionHistories) SetCurrentVersionHistoryIndex ¶ added in v0.9.3
func (h *VersionHistories) SetCurrentVersionHistoryIndex( index int, ) error
SetCurrentVersionHistoryIndex set the current branch index
func (*VersionHistories) ToInternalType ¶ added in v0.18.0
func (h *VersionHistories) ToInternalType() *types.VersionHistories
ToInternalType return internal format of version histories
type VersionHistory ¶ added in v0.5.8
type VersionHistory struct {
BranchToken []byte
Items []*VersionHistoryItem
}
VersionHistory provides operations on version history
func NewVersionHistory ¶ added in v0.5.8
func NewVersionHistory( inputToken []byte, inputItems []*VersionHistoryItem, ) *VersionHistory
NewVersionHistory create a new version history
func NewVersionHistoryFromInternalType ¶ added in v0.18.0
func NewVersionHistoryFromInternalType( input *types.VersionHistory, ) *VersionHistory
NewVersionHistoryFromInternalType create a new version history from internal type object
func (*VersionHistory) AddOrUpdateItem ¶ added in v0.9.3
func (v *VersionHistory) AddOrUpdateItem( item *VersionHistoryItem, ) error
AddOrUpdateItem updates the versionHistory slice
func (*VersionHistory) ContainsItem ¶ added in v0.9.3
func (v *VersionHistory) ContainsItem( item *VersionHistoryItem, ) bool
ContainsItem check whether given version history item is included
func (*VersionHistory) Duplicate ¶ added in v0.9.3
func (v *VersionHistory) Duplicate() *VersionHistory
Duplicate duplicate VersionHistory
func (*VersionHistory) DuplicateUntilLCAItem ¶ added in v0.9.3
func (v *VersionHistory) DuplicateUntilLCAItem( lcaItem *VersionHistoryItem, ) (*VersionHistory, error)
DuplicateUntilLCAItem duplicate the version history up until LCA item
func (*VersionHistory) Equals ¶ added in v0.9.3
func (v *VersionHistory) Equals( input *VersionHistory, ) bool
Equals test if this version history and input version history are the same
func (*VersionHistory) FindLCAItem ¶ added in v0.9.3
func (v *VersionHistory) FindLCAItem( remote *VersionHistory, ) (*VersionHistoryItem, error)
FindLCAItem returns the lowest common ancestor version history item
func (*VersionHistory) GetBranchToken ¶ added in v0.9.3
func (v *VersionHistory) GetBranchToken() []byte
GetBranchToken return the branch token
func (*VersionHistory) GetEventVersion ¶ added in v0.10.0
func (v *VersionHistory) GetEventVersion( eventID int64, ) (int64, error)
GetEventVersion return the corresponding event version of an event ID
func (*VersionHistory) GetFirstItem ¶ added in v0.9.3
func (v *VersionHistory) GetFirstItem() (*VersionHistoryItem, error)
GetFirstItem return the first version history item
func (*VersionHistory) GetLastItem ¶ added in v0.9.3
func (v *VersionHistory) GetLastItem() (*VersionHistoryItem, error)
GetLastItem return the last version history item
func (*VersionHistory) IsEmpty ¶ added in v0.9.3
func (v *VersionHistory) IsEmpty() bool
IsEmpty indicate whether version history is empty
func (*VersionHistory) IsLCAAppendable ¶ added in v0.9.3
func (v *VersionHistory) IsLCAAppendable( item *VersionHistoryItem, ) bool
IsLCAAppendable checks if a LCA version history item is appendable
func (*VersionHistory) SetBranchToken ¶ added in v0.9.3
func (v *VersionHistory) SetBranchToken( inputToken []byte, ) error
SetBranchToken the overwrite the branch token
func (*VersionHistory) ToInternalType ¶ added in v0.18.0
func (v *VersionHistory) ToInternalType() *types.VersionHistory
ToInternalType return internal format of version history
type VersionHistoryItem ¶ added in v0.5.8
VersionHistoryItem contains the event id and the associated version
func NewVersionHistoryItem ¶ added in v0.9.3
func NewVersionHistoryItem( inputEventID int64, inputVersion int64, ) *VersionHistoryItem
NewVersionHistoryItem create a new version history item
func NewVersionHistoryItemFromInternalType ¶ added in v0.18.0
func NewVersionHistoryItemFromInternalType( input *types.VersionHistoryItem, ) *VersionHistoryItem
NewVersionHistoryItemFromInternalType create a new version history item from internal type object
func (*VersionHistoryItem) Duplicate ¶ added in v0.9.3
func (item *VersionHistoryItem) Duplicate() *VersionHistoryItem
Duplicate duplicate VersionHistoryItem
func (*VersionHistoryItem) Equals ¶ added in v0.9.3
func (item *VersionHistoryItem) Equals(input *VersionHistoryItem) bool
Equals test if this version history item and input version history item are the same
func (*VersionHistoryItem) ToInternalType ¶ added in v0.18.0
func (item *VersionHistoryItem) ToInternalType() *types.VersionHistoryItem
ToInternalType return internal format of version history item
type VisibilityAdminDeletionKey ¶ added in v0.24.0
type VisibilityAdminDeletionKey string
type VisibilityDeleteWorkflowExecutionRequest ¶ added in v0.5.7
type VisibilityDeleteWorkflowExecutionRequest struct {
DomainID string
Domain string
RunID string
WorkflowID string
TaskID int64
}
VisibilityDeleteWorkflowExecutionRequest contains the request params for DeleteWorkflowExecution call
type VisibilityManager ¶
type VisibilityManager interface {
Closeable
GetName() string
RecordWorkflowExecutionStarted(ctx context.Context, request *RecordWorkflowExecutionStartedRequest) error
RecordWorkflowExecutionClosed(ctx context.Context, request *RecordWorkflowExecutionClosedRequest) error
RecordWorkflowExecutionUninitialized(ctx context.Context, request *RecordWorkflowExecutionUninitializedRequest) error
UpsertWorkflowExecution(ctx context.Context, request *UpsertWorkflowExecutionRequest) error
ListOpenWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByType(ctx context.Context, request *ListWorkflowExecutionsByTypeRequest) (*ListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, request *ListWorkflowExecutionsByWorkflowIDRequest) (*ListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByStatus(ctx context.Context, request *ListClosedWorkflowExecutionsByStatusRequest) (*ListWorkflowExecutionsResponse, error)
DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*ListWorkflowExecutionsResponse, error)
CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
// NOTE: GetClosedWorkflowExecution is only for persistence testing, currently no index is supported for filtering by RunID
GetClosedWorkflowExecution(ctx context.Context, request *GetClosedWorkflowExecutionRequest) (*GetClosedWorkflowExecutionResponse, error)
DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
}
VisibilityManager is used to manage the visibility store
func NewVisibilityHybridManager ¶ added in v1.2.17
func NewVisibilityHybridManager( visibilityMgrs map[string]VisibilityManager, readVisibilityStoreName dynamicproperties.StringPropertyFnWithDomainFilter, writeVisibilityStoreName dynamicproperties.StringPropertyFn, logCustomerQueryParameter dynamicproperties.BoolPropertyFnWithDomainFilter, name string, logger log.Logger, ) VisibilityManager
NewVisibilityTripleManager create a visibility manager that operate on DB or advanced visibility based on dynamic config. For Pinot migration, Pinot is the destination visibility manager, ES is the source visibility manager, and DB is the fallback. For OpenSearch migration, OS is the destination visibility manager, ES is the source visibility manager, and DB is the fallback.
func NewVisibilityManagerImpl ¶ added in v0.5.7
func NewVisibilityManagerImpl(persistence VisibilityStore, logger log.Logger) VisibilityManager
NewVisibilityManagerImpl returns new VisibilityManager via a VisibilityStore
type VisibilityStore ¶ added in v0.4.0
type VisibilityStore interface {
Closeable
GetName() string
RecordWorkflowExecutionStarted(ctx context.Context, request *InternalRecordWorkflowExecutionStartedRequest) error
RecordWorkflowExecutionClosed(ctx context.Context, request *InternalRecordWorkflowExecutionClosedRequest) error
RecordWorkflowExecutionUninitialized(ctx context.Context, request *InternalRecordWorkflowExecutionUninitializedRequest) error
UpsertWorkflowExecution(ctx context.Context, request *InternalUpsertWorkflowExecutionRequest) error
ListOpenWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions(ctx context.Context, request *InternalListWorkflowExecutionsRequest) (*InternalListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByType(ctx context.Context, request *InternalListWorkflowExecutionsByTypeRequest) (*InternalListWorkflowExecutionsResponse, error)
ListOpenWorkflowExecutionsByWorkflowID(ctx context.Context, request *InternalListWorkflowExecutionsByWorkflowIDRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByWorkflowID(ctx context.Context, request *InternalListWorkflowExecutionsByWorkflowIDRequest) (*InternalListWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutionsByStatus(ctx context.Context, request *InternalListClosedWorkflowExecutionsByStatusRequest) (*InternalListWorkflowExecutionsResponse, error)
GetClosedWorkflowExecution(ctx context.Context, request *InternalGetClosedWorkflowExecutionRequest) (*InternalGetClosedWorkflowExecutionResponse, error)
DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
ScanWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsByQueryRequest) (*InternalListWorkflowExecutionsResponse, error)
CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error)
DeleteUninitializedWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error
}
VisibilityStore is the store interface for visibility
type WorkflowBackoffTimerTask ¶ added in v0.5.0
type WorkflowBackoffTimerTask struct {
WorkflowIdentifier
TaskData
TimeoutType int // 0 for retry, 1 for cron.
}
WorkflowBackoffTimerTask to schedule first decision task for retried workflow
func (*WorkflowBackoffTimerTask) ByteSize ¶ added in v1.3.0
func (r *WorkflowBackoffTimerTask) ByteSize() uint64
func (*WorkflowBackoffTimerTask) GetTaskCategory ¶ added in v1.3.0
func (r *WorkflowBackoffTimerTask) GetTaskCategory() HistoryTaskCategory
func (*WorkflowBackoffTimerTask) GetTaskKey ¶ added in v1.3.1
func (r *WorkflowBackoffTimerTask) GetTaskKey() HistoryTaskKey
func (*WorkflowBackoffTimerTask) GetTaskType ¶ added in v1.2.18
func (r *WorkflowBackoffTimerTask) GetTaskType() int
GetType returns the type of the retry timer task
func (*WorkflowBackoffTimerTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (r *WorkflowBackoffTimerTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*WorkflowBackoffTimerTask) ToTimerTaskInfo ¶ added in v1.2.18
func (r *WorkflowBackoffTimerTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*WorkflowBackoffTimerTask) ToTransferTaskInfo ¶ added in v1.2.18
func (r *WorkflowBackoffTimerTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
type WorkflowEvents ¶ added in v0.7.0
type WorkflowEvents struct {
DomainID string
WorkflowID string
RunID string
BranchToken []byte
Events []*types.HistoryEvent
}
WorkflowEvents is used as generic workflow history events transaction container
type WorkflowExecutionAlreadyStartedError ¶ added in v0.3.5
type WorkflowExecutionAlreadyStartedError struct {
Msg string
StartRequestID string
RunID string
State int
CloseStatus int
LastWriteVersion int64
}
WorkflowExecutionAlreadyStartedError is returned when creating a new workflow failed.
func (*WorkflowExecutionAlreadyStartedError) Error ¶ added in v0.3.5
func (e *WorkflowExecutionAlreadyStartedError) Error() string
type WorkflowExecutionInfo ¶
type WorkflowExecutionInfo struct {
DomainID string
WorkflowID string
RunID string
FirstExecutionRunID string
ParentDomainID string
ParentWorkflowID string
ParentRunID string
InitiatedID int64
CompletionEventBatchID int64
CompletionEvent *types.HistoryEvent
TaskList string
TaskListKind types.TaskListKind
WorkflowTypeName string
WorkflowTimeout int32
DecisionStartToCloseTimeout int32
ExecutionContext []byte
State int
CloseStatus int
LastFirstEventID int64
LastEventTaskID int64
NextEventID int64
LastProcessedEvent int64
StartTimestamp time.Time
LastUpdatedTimestamp time.Time
CreateRequestID string
SignalCount int32
DecisionVersion int64
DecisionScheduleID int64
DecisionStartedID int64
DecisionRequestID string
DecisionTimeout int32
DecisionAttempt int64
DecisionStartedTimestamp int64
DecisionScheduledTimestamp int64
DecisionOriginalScheduledTimestamp int64
CancelRequested bool
CancelRequestID string
StickyTaskList string
StickyScheduleToStartTimeout int32
ClientLibraryVersion string
ClientFeatureVersion string
ClientImpl string
AutoResetPoints *types.ResetPoints
Memo map[string][]byte
SearchAttributes map[string][]byte
PartitionConfig map[string]string
// for retry
Attempt int32
HasRetryPolicy bool
InitialInterval int32
BackoffCoefficient float64
MaximumInterval int32
ExpirationTime time.Time
MaximumAttempts int32
NonRetriableErrors []string
BranchToken []byte
// Cron
CronSchedule string
IsCron bool
CronOverlapPolicy types.CronOverlapPolicy
ExpirationSeconds int32 // TODO: is this field useful?
ActiveClusterSelectionPolicy *types.ActiveClusterSelectionPolicy
}
WorkflowExecutionInfo describes a workflow execution
func (*WorkflowExecutionInfo) CopyMemo ¶ added in v1.2.14
func (e *WorkflowExecutionInfo) CopyMemo() map[string][]byte
func (*WorkflowExecutionInfo) CopyPartitionConfig ¶ added in v1.2.14
func (e *WorkflowExecutionInfo) CopyPartitionConfig() map[string]string
func (*WorkflowExecutionInfo) CopySearchAttributes ¶ added in v1.2.14
func (e *WorkflowExecutionInfo) CopySearchAttributes() map[string][]byte
func (*WorkflowExecutionInfo) IncreaseNextEventID ¶ added in v0.5.0
func (e *WorkflowExecutionInfo) IncreaseNextEventID()
IncreaseNextEventID increase the nextEventID by 1
func (*WorkflowExecutionInfo) IsRunning ¶ added in v0.25.0
func (e *WorkflowExecutionInfo) IsRunning() bool
func (*WorkflowExecutionInfo) SetLastFirstEventID ¶ added in v0.5.0
func (e *WorkflowExecutionInfo) SetLastFirstEventID(id int64)
SetLastFirstEventID set the LastFirstEventID
func (*WorkflowExecutionInfo) SetNextEventID ¶ added in v0.5.0
func (e *WorkflowExecutionInfo) SetNextEventID(id int64)
SetNextEventID sets the nextEventID
func (*WorkflowExecutionInfo) UpdateWorkflowStateCloseStatus ¶ added in v0.9.3
func (e *WorkflowExecutionInfo) UpdateWorkflowStateCloseStatus( state int, closeStatus int, ) error
UpdateWorkflowStateCloseStatus update the workflow state
type WorkflowIdentifier ¶ added in v1.2.18
func (*WorkflowIdentifier) ByteSize ¶ added in v1.3.0
func (a *WorkflowIdentifier) ByteSize() uint64
func (*WorkflowIdentifier) GetDomainID ¶ added in v1.2.18
func (a *WorkflowIdentifier) GetDomainID() string
func (*WorkflowIdentifier) GetRunID ¶ added in v1.2.18
func (a *WorkflowIdentifier) GetRunID() string
func (*WorkflowIdentifier) GetWorkflowID ¶ added in v1.2.18
func (a *WorkflowIdentifier) GetWorkflowID() string
type WorkflowMutableState ¶
type WorkflowMutableState struct {
ActivityInfos map[int64]*ActivityInfo
TimerInfos map[string]*TimerInfo
ChildExecutionInfos map[int64]*ChildExecutionInfo
RequestCancelInfos map[int64]*RequestCancelInfo
SignalInfos map[int64]*SignalInfo
SignalRequestedIDs map[string]struct{}
ExecutionInfo *WorkflowExecutionInfo
ExecutionStats *ExecutionStats
BufferedEvents []*types.HistoryEvent
VersionHistories *VersionHistories
ReplicationState *ReplicationState // TODO: remove this after all 2DC workflows complete
Checksum checksum.Checksum
}
WorkflowMutableState indicates workflow related state
type WorkflowMutation ¶ added in v0.6.0
type WorkflowMutation struct {
ExecutionInfo *WorkflowExecutionInfo
ExecutionStats *ExecutionStats
VersionHistories *VersionHistories
UpsertActivityInfos []*ActivityInfo
DeleteActivityInfos []int64
UpsertTimerInfos []*TimerInfo
DeleteTimerInfos []string
UpsertChildExecutionInfos []*ChildExecutionInfo
DeleteChildExecutionInfos []int64
UpsertRequestCancelInfos []*RequestCancelInfo
DeleteRequestCancelInfos []int64
UpsertSignalInfos []*SignalInfo
DeleteSignalInfos []int64
UpsertSignalRequestedIDs []string
DeleteSignalRequestedIDs []string
NewBufferedEvents []*types.HistoryEvent
ClearBufferedEvents bool
TasksByCategory map[HistoryTaskCategory][]Task
WorkflowRequests []*WorkflowRequest
Condition int64
Checksum checksum.Checksum
}
WorkflowMutation is used as generic workflow execution state mutation
type WorkflowRequest ¶ added in v1.2.9
type WorkflowRequest struct {
RequestID string
Version int64
RequestType WorkflowRequestType
}
WorkflowRequest is used as requestID and it's corresponding failover version container
type WorkflowRequestType ¶ added in v1.2.9
type WorkflowRequestType int
WorkflowRequestType is the type of workflow request
const ( WorkflowRequestTypeStart WorkflowRequestType = iota WorkflowRequestTypeSignal WorkflowRequestTypeCancel WorkflowRequestTypeReset )
Types of workflow requests
type WorkflowSnapshot ¶ added in v0.6.0
type WorkflowSnapshot struct {
ExecutionInfo *WorkflowExecutionInfo
ExecutionStats *ExecutionStats
VersionHistories *VersionHistories
ActivityInfos []*ActivityInfo
TimerInfos []*TimerInfo
ChildExecutionInfos []*ChildExecutionInfo
RequestCancelInfos []*RequestCancelInfo
SignalInfos []*SignalInfo
SignalRequestedIDs []string
TasksByCategory map[HistoryTaskCategory][]Task
WorkflowRequests []*WorkflowRequest
Condition int64
Checksum checksum.Checksum
}
WorkflowSnapshot is used as generic workflow execution state snapshot
type WorkflowTimeoutTask ¶
type WorkflowTimeoutTask struct {
WorkflowIdentifier
TaskData
}
WorkflowTimeoutTask identifies a timeout task.
func (*WorkflowTimeoutTask) ByteSize ¶ added in v1.3.0
func (u *WorkflowTimeoutTask) ByteSize() uint64
func (*WorkflowTimeoutTask) GetTaskCategory ¶ added in v1.3.0
func (u *WorkflowTimeoutTask) GetTaskCategory() HistoryTaskCategory
func (*WorkflowTimeoutTask) GetTaskKey ¶ added in v1.3.1
func (u *WorkflowTimeoutTask) GetTaskKey() HistoryTaskKey
func (*WorkflowTimeoutTask) GetTaskType ¶ added in v1.2.18
func (u *WorkflowTimeoutTask) GetTaskType() int
GetType returns the type of the timeout task.
func (*WorkflowTimeoutTask) ToInternalReplicationTaskInfo ¶ added in v1.3.0
func (u *WorkflowTimeoutTask) ToInternalReplicationTaskInfo() (*types.ReplicationTaskInfo, error)
func (*WorkflowTimeoutTask) ToTimerTaskInfo ¶ added in v1.2.18
func (u *WorkflowTimeoutTask) ToTimerTaskInfo() (*TimerTaskInfo, error)
func (*WorkflowTimeoutTask) ToTransferTaskInfo ¶ added in v1.2.18
func (u *WorkflowTimeoutTask) ToTransferTaskInfo() (*TransferTaskInfo, error)
Source Files
¶
- config.go
- config_store_manager.go
- data_manager_interfaces.go
- data_manager_interfaces_mock.go
- data_store_interfaces.go
- data_store_interfaces_mock.go
- domain_manager.go
- errors.go
- execution_manager.go
- history_manager.go
- metered.go
- operation_mode_validator.go
- queue_manager.go
- retryer.go
- retryer_mock.go
- serializer.go
- serializer_mock.go
- shard_manager.go
- statsComputer.go
- task_manager.go
- tasks.go
- versionHistory.go
- visibility_hybrid_manager.go
- visibility_manager_interfaces.go
- visibility_manager_interfaces_mock.go
- visibility_single_manager.go
- visibility_store_mock.go
- workflowStateCloseStatusValidator.go
- workflow_execution_info.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client is a generated GoMock package.
|
Package client is a generated GoMock package. |
|
Package nosql is a generated GoMock package.
|
Package nosql is a generated GoMock package. |
|
nosqlplugin
Package nosqlplugin is a generated GoMock package.
|
Package nosqlplugin is a generated GoMock package. |
|
nosqlplugin/cassandra/gocql
Package gocql is a generated GoMock package.
|
Package gocql is a generated GoMock package. |
|
Package serialization is a generated GoMock package.
|
Package serialization is a generated GoMock package. |
|
sqldriver
Package sqldriver is a generated GoMock package.
|
Package sqldriver is a generated GoMock package. |
|
sqlplugin
Package sqlplugin is a generated GoMock package.
|
Package sqlplugin is a generated GoMock package. |
|
wrappers
|
|