Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
- Variables
- func BeanLifetimeHooks(lc fx.Lifecycle, bean Bean)
- func ClusterMetadataManagerProvider(factory Factory) (persistence.ClusterMetadataManager, error)
- func ExecutionManagerProvider(factory Factory) (persistence.ExecutionManager, error)
- func MetadataManagerProvider(factory Factory) (persistence.MetadataManager, error)
- func NamespaceReplicationQueueProvider(factory Factory) (persistence.NamespaceReplicationQueue, error)
- func NewFactoryImpl(cfg *config.Persistence, r resolver.ServiceResolver, ...) *factoryImpl
- func NewFactoryImplProvider(cfg *config.Persistence, r resolver.ServiceResolver, ...) *factoryImpl
- func ShardManagerProvider(factory Factory) (persistence.ShardManager, error)
- func TaskManagerProvider(factory Factory) (persistence.TaskManager, error)
- type AbstractDataStoreFactory
- type Bean
- type BeanImpl
- func (s *BeanImpl) Close()
- func (s *BeanImpl) GetClusterMetadataManager() persistence.ClusterMetadataManager
- func (s *BeanImpl) GetExecutionManager() persistence.ExecutionManager
- func (s *BeanImpl) GetMetadataManager() persistence.MetadataManager
- func (s *BeanImpl) GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue
- func (s *BeanImpl) GetShardManager() persistence.ShardManager
- func (s *BeanImpl) GetTaskManager() persistence.TaskManager
- type ClusterName
- type DataStoreFactory
- type Datastore
- type DefaultErrorGenerator
- type ErrorFactory
- type ErrorGenerator
- type Factory
- type FaultInjectionClusterMetadataStore
- func (c *FaultInjectionClusterMetadataStore) Close()
- func (c *FaultInjectionClusterMetadataStore) DeleteClusterMetadata(request *persistence.InternalDeleteClusterMetadataRequest) error
- func (c *FaultInjectionClusterMetadataStore) GetClusterMembers(request *persistence.GetClusterMembersRequest) (*persistence.GetClusterMembersResponse, error)
- func (c *FaultInjectionClusterMetadataStore) GetClusterMetadata(request *persistence.InternalGetClusterMetadataRequest) (*persistence.InternalGetClusterMetadataResponse, error)
- func (c *FaultInjectionClusterMetadataStore) GetName() string
- func (c *FaultInjectionClusterMetadataStore) ListClusterMetadata(request *persistence.InternalListClusterMetadataRequest) (*persistence.InternalListClusterMetadataResponse, error)
- func (c *FaultInjectionClusterMetadataStore) PruneClusterMembership(request *persistence.PruneClusterMembershipRequest) error
- func (c *FaultInjectionClusterMetadataStore) SaveClusterMetadata(request *persistence.InternalSaveClusterMetadataRequest) (bool, error)
- func (c *FaultInjectionClusterMetadataStore) UpdateRate(rate float64)
- func (c *FaultInjectionClusterMetadataStore) UpsertClusterMembership(request *persistence.UpsertClusterMembershipRequest) error
- type FaultInjectionDataStoreFactory
- func (d *FaultInjectionDataStoreFactory) Close()
- func (d *FaultInjectionDataStoreFactory) NewClusterMetadataStore() (persistence.ClusterMetadataStore, error)
- func (d *FaultInjectionDataStoreFactory) NewExecutionStore() (persistence.ExecutionStore, error)
- func (d *FaultInjectionDataStoreFactory) NewMetadataStore() (persistence.MetadataStore, error)
- func (d *FaultInjectionDataStoreFactory) NewQueue(queueType persistence.QueueType) (persistence.Queue, error)
- func (d *FaultInjectionDataStoreFactory) NewShardStore() (persistence.ShardStore, error)
- func (d *FaultInjectionDataStoreFactory) NewTaskStore() (persistence.TaskStore, error)
- func (d *FaultInjectionDataStoreFactory) UpdateRate(rate float64)
- type FaultInjectionExecutionStore
- func (e *FaultInjectionExecutionStore) AddTasks(request *persistence.InternalAddTasksRequest) error
- func (e *FaultInjectionExecutionStore) AppendHistoryNodes(request *persistence.InternalAppendHistoryNodesRequest) error
- func (e *FaultInjectionExecutionStore) Close()
- func (e *FaultInjectionExecutionStore) CompleteReplicationTask(request *persistence.CompleteReplicationTaskRequest) error
- func (e *FaultInjectionExecutionStore) CompleteTimerTask(request *persistence.CompleteTimerTaskRequest) error
- func (e *FaultInjectionExecutionStore) CompleteTransferTask(request *persistence.CompleteTransferTaskRequest) error
- func (e *FaultInjectionExecutionStore) CompleteVisibilityTask(request *persistence.CompleteVisibilityTaskRequest) error
- func (e *FaultInjectionExecutionStore) ConflictResolveWorkflowExecution(request *persistence.InternalConflictResolveWorkflowExecutionRequest) error
- func (e *FaultInjectionExecutionStore) CreateWorkflowExecution(request *persistence.InternalCreateWorkflowExecutionRequest) (*persistence.InternalCreateWorkflowExecutionResponse, error)
- func (e *FaultInjectionExecutionStore) DeleteCurrentWorkflowExecution(request *persistence.DeleteCurrentWorkflowExecutionRequest) error
- func (e *FaultInjectionExecutionStore) DeleteHistoryBranch(request *persistence.InternalDeleteHistoryBranchRequest) error
- func (e *FaultInjectionExecutionStore) DeleteHistoryNodes(request *persistence.InternalDeleteHistoryNodesRequest) error
- func (e *FaultInjectionExecutionStore) DeleteReplicationTaskFromDLQ(request *persistence.DeleteReplicationTaskFromDLQRequest) error
- func (e *FaultInjectionExecutionStore) DeleteWorkflowExecution(request *persistence.DeleteWorkflowExecutionRequest) error
- func (e *FaultInjectionExecutionStore) ForkHistoryBranch(request *persistence.InternalForkHistoryBranchRequest) error
- func (e *FaultInjectionExecutionStore) GetAllHistoryTreeBranches(request *persistence.GetAllHistoryTreeBranchesRequest) (*persistence.InternalGetAllHistoryTreeBranchesResponse, error)
- func (e *FaultInjectionExecutionStore) GetCurrentExecution(request *persistence.GetCurrentExecutionRequest) (*persistence.InternalGetCurrentExecutionResponse, error)
- func (e *FaultInjectionExecutionStore) GetHistoryTree(request *persistence.GetHistoryTreeRequest) (*persistence.InternalGetHistoryTreeResponse, error)
- func (e *FaultInjectionExecutionStore) GetName() string
- func (e *FaultInjectionExecutionStore) GetReplicationTask(request *persistence.GetReplicationTaskRequest) (*persistence.InternalGetReplicationTaskResponse, error)
- func (e *FaultInjectionExecutionStore) GetReplicationTasks(request *persistence.GetReplicationTasksRequest) (*persistence.InternalGetReplicationTasksResponse, error)
- func (e *FaultInjectionExecutionStore) GetReplicationTasksFromDLQ(request *persistence.GetReplicationTasksFromDLQRequest) (*persistence.InternalGetReplicationTasksFromDLQResponse, error)
- func (e *FaultInjectionExecutionStore) GetTimerTask(request *persistence.GetTimerTaskRequest) (*persistence.InternalGetTimerTaskResponse, error)
- func (e *FaultInjectionExecutionStore) GetTimerTasks(request *persistence.GetTimerTasksRequest) (*persistence.InternalGetTimerTasksResponse, error)
- func (e *FaultInjectionExecutionStore) GetTransferTask(request *persistence.GetTransferTaskRequest) (*persistence.InternalGetTransferTaskResponse, error)
- func (e *FaultInjectionExecutionStore) GetTransferTasks(request *persistence.GetTransferTasksRequest) (*persistence.InternalGetTransferTasksResponse, error)
- func (e *FaultInjectionExecutionStore) GetVisibilityTask(request *persistence.GetVisibilityTaskRequest) (*persistence.InternalGetVisibilityTaskResponse, error)
- func (e *FaultInjectionExecutionStore) GetVisibilityTasks(request *persistence.GetVisibilityTasksRequest) (*persistence.InternalGetVisibilityTasksResponse, error)
- func (e *FaultInjectionExecutionStore) GetWorkflowExecution(request *persistence.GetWorkflowExecutionRequest) (*persistence.InternalGetWorkflowExecutionResponse, error)
- func (e *FaultInjectionExecutionStore) ListConcreteExecutions(request *persistence.ListConcreteExecutionsRequest) (*persistence.InternalListConcreteExecutionsResponse, error)
- func (e *FaultInjectionExecutionStore) PutReplicationTaskToDLQ(request *persistence.PutReplicationTaskToDLQRequest) error
- func (e *FaultInjectionExecutionStore) RangeCompleteReplicationTask(request *persistence.RangeCompleteReplicationTaskRequest) error
- func (e *FaultInjectionExecutionStore) RangeCompleteTimerTask(request *persistence.RangeCompleteTimerTaskRequest) error
- func (e *FaultInjectionExecutionStore) RangeCompleteTransferTask(request *persistence.RangeCompleteTransferTaskRequest) error
- func (e *FaultInjectionExecutionStore) RangeCompleteVisibilityTask(request *persistence.RangeCompleteVisibilityTaskRequest) error
- func (e *FaultInjectionExecutionStore) RangeDeleteReplicationTaskFromDLQ(request *persistence.RangeDeleteReplicationTaskFromDLQRequest) error
- func (e *FaultInjectionExecutionStore) ReadHistoryBranch(request *persistence.InternalReadHistoryBranchRequest) (*persistence.InternalReadHistoryBranchResponse, error)
- func (e *FaultInjectionExecutionStore) UpdateRate(rate float64)
- func (e *FaultInjectionExecutionStore) UpdateWorkflowExecution(request *persistence.InternalUpdateWorkflowExecutionRequest) error
- type FaultInjectionMetadataStore
- func (m *FaultInjectionMetadataStore) Close()
- func (m *FaultInjectionMetadataStore) CreateNamespace(request *persistence.InternalCreateNamespaceRequest) (*persistence.CreateNamespaceResponse, error)
- func (m *FaultInjectionMetadataStore) DeleteNamespace(request *persistence.DeleteNamespaceRequest) error
- func (m *FaultInjectionMetadataStore) DeleteNamespaceByName(request *persistence.DeleteNamespaceByNameRequest) error
- func (m *FaultInjectionMetadataStore) GetMetadata() (*persistence.GetMetadataResponse, error)
- func (m *FaultInjectionMetadataStore) GetName() string
- func (m *FaultInjectionMetadataStore) GetNamespace(request *persistence.GetNamespaceRequest) (*persistence.InternalGetNamespaceResponse, error)
- func (m *FaultInjectionMetadataStore) ListNamespaces(request *persistence.ListNamespacesRequest) (*persistence.InternalListNamespacesResponse, error)
- func (m *FaultInjectionMetadataStore) UpdateNamespace(request *persistence.InternalUpdateNamespaceRequest) error
- func (m *FaultInjectionMetadataStore) UpdateRate(rate float64)
- type FaultInjectionQueue
- func (q *FaultInjectionQueue) Close()
- func (q *FaultInjectionQueue) DeleteMessageFromDLQ(messageID int64) error
- func (q *FaultInjectionQueue) DeleteMessagesBefore(messageID int64) error
- func (q *FaultInjectionQueue) EnqueueMessage(blob commonpb.DataBlob) error
- func (q *FaultInjectionQueue) EnqueueMessageToDLQ(blob commonpb.DataBlob) (int64, error)
- func (q *FaultInjectionQueue) GetAckLevels() (*persistence.InternalQueueMetadata, error)
- func (q *FaultInjectionQueue) GetDLQAckLevels() (*persistence.InternalQueueMetadata, error)
- func (q *FaultInjectionQueue) Init(blob *commonpb.DataBlob) error
- func (q *FaultInjectionQueue) RangeDeleteMessagesFromDLQ(firstMessageID int64, lastMessageID int64) error
- func (q *FaultInjectionQueue) ReadMessages(lastMessageID int64, maxCount int) ([]*persistence.QueueMessage, error)
- func (q *FaultInjectionQueue) ReadMessagesFromDLQ(firstMessageID int64, lastMessageID int64, pageSize int, pageToken []byte) ([]*persistence.QueueMessage, []byte, error)
- func (q *FaultInjectionQueue) UpdateAckLevel(metadata *persistence.InternalQueueMetadata) error
- func (q *FaultInjectionQueue) UpdateDLQAckLevel(metadata *persistence.InternalQueueMetadata) error
- func (q *FaultInjectionQueue) UpdateRate(rate float64)
- type FaultInjectionShardStore
- func (s *FaultInjectionShardStore) Close()
- func (s *FaultInjectionShardStore) GetClusterName() string
- func (s *FaultInjectionShardStore) GetName() string
- func (s *FaultInjectionShardStore) GetOrCreateShard(request *persistence.InternalGetOrCreateShardRequest) (*persistence.InternalGetOrCreateShardResponse, error)
- func (s *FaultInjectionShardStore) UpdateRate(rate float64)
- func (s *FaultInjectionShardStore) UpdateShard(request *persistence.InternalUpdateShardRequest) error
- type FaultInjectionTaskStore
- func (t *FaultInjectionTaskStore) Close()
- func (t *FaultInjectionTaskStore) CompleteTask(request *persistence.CompleteTaskRequest) error
- func (t *FaultInjectionTaskStore) CompleteTasksLessThan(request *persistence.CompleteTasksLessThanRequest) (int, error)
- func (t *FaultInjectionTaskStore) CreateTaskQueue(request *persistence.InternalCreateTaskQueueRequest) error
- func (t *FaultInjectionTaskStore) CreateTasks(request *persistence.InternalCreateTasksRequest) (*persistence.CreateTasksResponse, error)
- func (t *FaultInjectionTaskStore) DeleteTaskQueue(request *persistence.DeleteTaskQueueRequest) error
- func (t *FaultInjectionTaskStore) GetName() string
- func (t *FaultInjectionTaskStore) GetTaskQueue(request *persistence.InternalGetTaskQueueRequest) (*persistence.InternalGetTaskQueueResponse, error)
- func (t *FaultInjectionTaskStore) GetTasks(request *persistence.GetTasksRequest) (*persistence.InternalGetTasksResponse, error)
- func (t *FaultInjectionTaskStore) ListTaskQueue(request *persistence.ListTaskQueueRequest) (*persistence.InternalListTaskQueueResponse, error)
- func (t *FaultInjectionTaskStore) UpdateRate(rate float64)
- func (t *FaultInjectionTaskStore) UpdateTaskQueue(request *persistence.InternalUpdateTaskQueueRequest) (*persistence.UpdateTaskQueueResponse, error)
- type FaultMetadata
- type FaultWeight
- type MockBean
- func (m *MockBean) Close()
- func (m *MockBean) EXPECT() *MockBeanMockRecorder
- func (m *MockBean) GetClusterMetadataManager() persistence.ClusterMetadataManager
- func (m *MockBean) GetExecutionManager() persistence.ExecutionManager
- func (m *MockBean) GetMetadataManager() persistence.MetadataManager
- func (m *MockBean) GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue
- func (m *MockBean) GetShardManager() persistence.ShardManager
- func (m *MockBean) GetTaskManager() persistence.TaskManager
- type MockBeanMockRecorder
- func (mr *MockBeanMockRecorder) Close() *gomock.Call
- func (mr *MockBeanMockRecorder) GetClusterMetadataManager() *gomock.Call
- func (mr *MockBeanMockRecorder) GetExecutionManager() *gomock.Call
- func (mr *MockBeanMockRecorder) GetMetadataManager() *gomock.Call
- func (mr *MockBeanMockRecorder) GetNamespaceReplicationQueue() *gomock.Call
- func (mr *MockBeanMockRecorder) GetShardManager() *gomock.Call
- func (mr *MockBeanMockRecorder) GetTaskManager() *gomock.Call
- type NoopErrorGenerator
- type PersistenceMaxQps
Constants ¶
This section is empty.
Variables ¶
var BeanDepsModule = fx.Options( fx.Provide(ClusterMetadataManagerProvider), fx.Provide(MetadataManagerProvider), fx.Provide(TaskManagerProvider), fx.Provide(NamespaceReplicationQueueProvider), fx.Provide(ShardManagerProvider), fx.Provide(ExecutionManagerProvider), )
var BeanModule = fx.Options( BeanDepsModule, fx.Provide(BeanProvider), fx.Provide(func(impl *BeanImpl) Bean { return impl }), fx.Invoke(BeanLifetimeHooks), )
var FactoryModule = fx.Options( fx.Provide(ClusterNameProvider), fx.Provide(NewFactoryImplProvider), fx.Provide(BindFactory), )
var Module = fx.Options( FactoryModule, BeanModule, )
Functions ¶
func BeanLifetimeHooks ¶ added in v1.14.0
func ClusterMetadataManagerProvider ¶ added in v1.14.0
func ClusterMetadataManagerProvider(factory Factory) (persistence.ClusterMetadataManager, error)
func ExecutionManagerProvider ¶ added in v1.14.0
func ExecutionManagerProvider(factory Factory) (persistence.ExecutionManager, error)
func MetadataManagerProvider ¶ added in v1.14.0
func MetadataManagerProvider(factory Factory) (persistence.MetadataManager, error)
func NamespaceReplicationQueueProvider ¶ added in v1.14.0
func NamespaceReplicationQueueProvider(factory Factory) (persistence.NamespaceReplicationQueue, error)
func NewFactoryImpl ¶ added in v1.13.0
func NewFactoryImpl( cfg *config.Persistence, r resolver.ServiceResolver, persistenceMaxQPS dynamicconfig.IntPropertyFn, abstractDataStoreFactory AbstractDataStoreFactory, clusterName string, metricsClient metrics.Client, logger log.Logger, ) *factoryImpl
Initializes and returns FactoryImpl
func NewFactoryImplProvider ¶ added in v1.13.0
func NewFactoryImplProvider( cfg *config.Persistence, r resolver.ServiceResolver, persistenceMaxQPS PersistenceMaxQps, abstractDataStoreFactory AbstractDataStoreFactory, clusterName ClusterName, metricsClient metrics.Client, logger log.Logger, ) *factoryImpl
func ShardManagerProvider ¶ added in v1.14.0
func ShardManagerProvider(factory Factory) (persistence.ShardManager, error)
func TaskManagerProvider ¶ added in v1.14.0
func TaskManagerProvider(factory Factory) (persistence.TaskManager, error)
Types ¶
type AbstractDataStoreFactory ¶
type AbstractDataStoreFactory interface { NewFactory( cfg config.CustomDatastoreConfig, r resolver.ServiceResolver, clusterName string, logger log.Logger, metricsClient metrics.Client, ) DataStoreFactory }
AbstractDataStoreFactory creates a DataStoreFactory, can be used to implement custom datastore support outside of the Temporal core.
type Bean ¶
type Bean interface { Close() GetClusterMetadataManager() persistence.ClusterMetadataManager GetMetadataManager() persistence.MetadataManager GetTaskManager() persistence.TaskManager GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue GetShardManager() persistence.ShardManager GetExecutionManager() persistence.ExecutionManager }
Bean in an collection of persistence manager
type BeanImpl ¶
BeanImpl stores persistence managers
func BeanProvider ¶ added in v1.14.0
func BeanProvider( factory Factory, clusterMetadataManager persistence.ClusterMetadataManager, metadataManager persistence.MetadataManager, taskManager persistence.TaskManager, namespaceReplicationQueue persistence.NamespaceReplicationQueue, shardManager persistence.ShardManager, executionManager persistence.ExecutionManager, ) *BeanImpl
func NewBean ¶
func NewBean( factory Factory, clusterMetadataManager persistence.ClusterMetadataManager, metadataManager persistence.MetadataManager, taskManager persistence.TaskManager, namespaceReplicationQueue persistence.NamespaceReplicationQueue, shardManager persistence.ShardManager, executionManager persistence.ExecutionManager, ) *BeanImpl
NewBean create a new store bean
func NewBeanFromFactory ¶
NewBeanFromFactory crate a new store bean using factory
func (*BeanImpl) GetClusterMetadataManager ¶
func (s *BeanImpl) GetClusterMetadataManager() persistence.ClusterMetadataManager
GetClusterMetadataManager get ClusterMetadataManager
func (*BeanImpl) GetExecutionManager ¶
func (s *BeanImpl) GetExecutionManager() persistence.ExecutionManager
GetExecutionManager get ExecutionManager
func (*BeanImpl) GetMetadataManager ¶
func (s *BeanImpl) GetMetadataManager() persistence.MetadataManager
GetMetadataManager get MetadataManager
func (*BeanImpl) GetNamespaceReplicationQueue ¶
func (s *BeanImpl) GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue
GetNamespaceReplicationQueue get NamespaceReplicationQueue
func (*BeanImpl) GetShardManager ¶
func (s *BeanImpl) GetShardManager() persistence.ShardManager
GetShardManager get ShardManager
func (*BeanImpl) GetTaskManager ¶
func (s *BeanImpl) GetTaskManager() persistence.TaskManager
GetTaskManager get TaskManager
type ClusterName ¶ added in v1.13.0
type ClusterName string
func ClusterNameProvider ¶ added in v1.14.0
func ClusterNameProvider(config *cluster.Config) ClusterName
type DataStoreFactory ¶
type DataStoreFactory interface { // Close closes the factory Close() // NewTaskStore returns a new task store NewTaskStore() (p.TaskStore, error) // NewShardStore returns a new shard store NewShardStore() (p.ShardStore, error) // NewMetadataStore returns a new metadata store NewMetadataStore() (p.MetadataStore, error) // NewExecutionStore returns a new execution store NewExecutionStore() (p.ExecutionStore, error) NewQueue(queueType p.QueueType) (p.Queue, error) // NewClusterMetadataStore returns a new metadata store NewClusterMetadataStore() (p.ClusterMetadataStore, error) }
DataStoreFactory is a low level interface to be implemented by a datastore Examples of datastores are cassandra, mysql etc
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
Datastore represents a datastore
type DefaultErrorGenerator ¶ added in v1.12.0
func NewDefaultErrorGenerator ¶ added in v1.12.0
func NewDefaultErrorGenerator(rate float64, errorWeights []FaultWeight) *DefaultErrorGenerator
func (*DefaultErrorGenerator) Generate ¶ added in v1.12.0
func (p *DefaultErrorGenerator) Generate() error
func (*DefaultErrorGenerator) Rate ¶ added in v1.13.0
func (p *DefaultErrorGenerator) Rate() float64
func (*DefaultErrorGenerator) UpdateRate ¶ added in v1.12.0
func (p *DefaultErrorGenerator) UpdateRate(rate float64)
func (*DefaultErrorGenerator) UpdateWeights ¶ added in v1.12.0
func (p *DefaultErrorGenerator) UpdateWeights(errorWeights []FaultWeight)
type ErrorFactory ¶ added in v1.12.0
type ErrorGenerator ¶ added in v1.12.0
type ErrorGenerator interface { Generate() error UpdateRate(rate float64) UpdateWeights(weights []FaultWeight) Rate() float64 }
type Factory ¶
type Factory interface { // Close the factory Close() // NewTaskManager returns a new task manager NewTaskManager() (p.TaskManager, error) // NewShardManager returns a new shard manager NewShardManager() (p.ShardManager, error) // NewMetadataManager returns a new metadata manager NewMetadataManager() (p.MetadataManager, error) // NewExecutionManager returns a new execution manager NewExecutionManager() (p.ExecutionManager, error) // NewNamespaceReplicationQueue returns a new queue for namespace replication NewNamespaceReplicationQueue() (p.NamespaceReplicationQueue, error) // NewClusterMetadataManager returns a new manager for cluster specific metadata NewClusterMetadataManager() (p.ClusterMetadataManager, error) FaultInjection() *FaultInjectionDataStoreFactory }
Factory defines the interface for any implementation that can vend persistence layer objects backed by a datastore. The actual datastore is implementation detail hidden behind this interface
func BindFactory ¶ added in v1.13.0
func BindFactory(f *factoryImpl) Factory
func NewFactory ¶
func NewFactory( cfg *config.Persistence, r resolver.ServiceResolver, persistenceMaxQPS dynamicconfig.IntPropertyFn, abstractDataStoreFactory AbstractDataStoreFactory, clusterName string, metricsClient metrics.Client, logger log.Logger, ) Factory
NewFactory returns an implementation of factory that vends persistence objects based on specified configuration. This factory takes as input a config.Persistence object which specifies the datastore to be used for a given type of object. This config also contains config for individual datastores themselves.
The objects returned by this factory enforce ratelimit and maxconns according to given configuration. In addition, all objects will emit metrics automatically
type FaultInjectionClusterMetadataStore ¶ added in v1.12.0
type FaultInjectionClusterMetadataStore struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionClusterMetadataStore ¶ added in v1.12.0
func NewFaultInjectionClusterMetadataStore(rate float64, baseStore persistence.ClusterMetadataStore) ( *FaultInjectionClusterMetadataStore, error, )
func (*FaultInjectionClusterMetadataStore) Close ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) Close()
func (*FaultInjectionClusterMetadataStore) DeleteClusterMetadata ¶ added in v1.14.0
func (c *FaultInjectionClusterMetadataStore) DeleteClusterMetadata( request *persistence.InternalDeleteClusterMetadataRequest, ) error
func (*FaultInjectionClusterMetadataStore) GetClusterMembers ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) GetClusterMembers(request *persistence.GetClusterMembersRequest) ( *persistence.GetClusterMembersResponse, error, )
func (*FaultInjectionClusterMetadataStore) GetClusterMetadata ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) GetClusterMetadata(request *persistence.InternalGetClusterMetadataRequest) ( *persistence.InternalGetClusterMetadataResponse, error, )
func (*FaultInjectionClusterMetadataStore) GetName ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) GetName() string
func (*FaultInjectionClusterMetadataStore) ListClusterMetadata ¶ added in v1.14.0
func (c *FaultInjectionClusterMetadataStore) ListClusterMetadata(request *persistence.InternalListClusterMetadataRequest) ( *persistence.InternalListClusterMetadataResponse, error, )
func (*FaultInjectionClusterMetadataStore) PruneClusterMembership ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) PruneClusterMembership(request *persistence.PruneClusterMembershipRequest) error
func (*FaultInjectionClusterMetadataStore) SaveClusterMetadata ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) SaveClusterMetadata( request *persistence.InternalSaveClusterMetadataRequest, ) (bool, error)
func (*FaultInjectionClusterMetadataStore) UpdateRate ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) UpdateRate(rate float64)
func (*FaultInjectionClusterMetadataStore) UpsertClusterMembership ¶ added in v1.12.0
func (c *FaultInjectionClusterMetadataStore) UpsertClusterMembership(request *persistence.UpsertClusterMembershipRequest) error
type FaultInjectionDataStoreFactory ¶ added in v1.12.0
type FaultInjectionDataStoreFactory struct { ErrorGenerator ErrorGenerator TaskStore *FaultInjectionTaskStore ShardStore *FaultInjectionShardStore MetadataStore *FaultInjectionMetadataStore ExecutionStore *FaultInjectionExecutionStore Queue *FaultInjectionQueue ClusterMDStore *FaultInjectionClusterMetadataStore // contains filtered or unexported fields }
func NewFaultInjectionDatastoreFactory ¶ added in v1.12.0
func NewFaultInjectionDatastoreFactory( config *config.FaultInjection, baseFactory DataStoreFactory, ) *FaultInjectionDataStoreFactory
func (*FaultInjectionDataStoreFactory) Close ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) Close()
func (*FaultInjectionDataStoreFactory) NewClusterMetadataStore ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewClusterMetadataStore() (persistence.ClusterMetadataStore, error)
func (*FaultInjectionDataStoreFactory) NewExecutionStore ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewExecutionStore() (persistence.ExecutionStore, error)
func (*FaultInjectionDataStoreFactory) NewMetadataStore ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewMetadataStore() (persistence.MetadataStore, error)
func (*FaultInjectionDataStoreFactory) NewQueue ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewQueue(queueType persistence.QueueType) (persistence.Queue, error)
func (*FaultInjectionDataStoreFactory) NewShardStore ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewShardStore() (persistence.ShardStore, error)
func (*FaultInjectionDataStoreFactory) NewTaskStore ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) NewTaskStore() (persistence.TaskStore, error)
func (*FaultInjectionDataStoreFactory) UpdateRate ¶ added in v1.12.0
func (d *FaultInjectionDataStoreFactory) UpdateRate(rate float64)
type FaultInjectionExecutionStore ¶ added in v1.12.0
type FaultInjectionExecutionStore struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionExecutionStore ¶ added in v1.12.0
func NewFaultInjectionExecutionStore(rate float64, executionStore persistence.ExecutionStore) ( *FaultInjectionExecutionStore, error, )
func (*FaultInjectionExecutionStore) AddTasks ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) AddTasks(request *persistence.InternalAddTasksRequest) error
func (*FaultInjectionExecutionStore) AppendHistoryNodes ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) AppendHistoryNodes(request *persistence.InternalAppendHistoryNodesRequest) error
func (*FaultInjectionExecutionStore) Close ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) Close()
func (*FaultInjectionExecutionStore) CompleteReplicationTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) CompleteReplicationTask(request *persistence.CompleteReplicationTaskRequest) error
func (*FaultInjectionExecutionStore) CompleteTimerTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) CompleteTimerTask(request *persistence.CompleteTimerTaskRequest) error
func (*FaultInjectionExecutionStore) CompleteTransferTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) CompleteTransferTask(request *persistence.CompleteTransferTaskRequest) error
func (*FaultInjectionExecutionStore) CompleteVisibilityTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) CompleteVisibilityTask(request *persistence.CompleteVisibilityTaskRequest) error
func (*FaultInjectionExecutionStore) ConflictResolveWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) ConflictResolveWorkflowExecution(request *persistence.InternalConflictResolveWorkflowExecutionRequest) error
func (*FaultInjectionExecutionStore) CreateWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) CreateWorkflowExecution(request *persistence.InternalCreateWorkflowExecutionRequest) ( *persistence.InternalCreateWorkflowExecutionResponse, error, )
func (*FaultInjectionExecutionStore) DeleteCurrentWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) DeleteCurrentWorkflowExecution(request *persistence.DeleteCurrentWorkflowExecutionRequest) error
func (*FaultInjectionExecutionStore) DeleteHistoryBranch ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) DeleteHistoryBranch(request *persistence.InternalDeleteHistoryBranchRequest) error
func (*FaultInjectionExecutionStore) DeleteHistoryNodes ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) DeleteHistoryNodes(request *persistence.InternalDeleteHistoryNodesRequest) error
func (*FaultInjectionExecutionStore) DeleteReplicationTaskFromDLQ ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) DeleteReplicationTaskFromDLQ(request *persistence.DeleteReplicationTaskFromDLQRequest) error
func (*FaultInjectionExecutionStore) DeleteWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) DeleteWorkflowExecution(request *persistence.DeleteWorkflowExecutionRequest) error
func (*FaultInjectionExecutionStore) ForkHistoryBranch ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) ForkHistoryBranch(request *persistence.InternalForkHistoryBranchRequest) error
func (*FaultInjectionExecutionStore) GetAllHistoryTreeBranches ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetAllHistoryTreeBranches(request *persistence.GetAllHistoryTreeBranchesRequest) ( *persistence.InternalGetAllHistoryTreeBranchesResponse, error, )
func (*FaultInjectionExecutionStore) GetCurrentExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetCurrentExecution(request *persistence.GetCurrentExecutionRequest) ( *persistence.InternalGetCurrentExecutionResponse, error, )
func (*FaultInjectionExecutionStore) GetHistoryTree ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetHistoryTree(request *persistence.GetHistoryTreeRequest) ( *persistence.InternalGetHistoryTreeResponse, error, )
func (*FaultInjectionExecutionStore) GetName ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetName() string
func (*FaultInjectionExecutionStore) GetReplicationTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetReplicationTask(request *persistence.GetReplicationTaskRequest) ( *persistence.InternalGetReplicationTaskResponse, error, )
func (*FaultInjectionExecutionStore) GetReplicationTasks ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetReplicationTasks(request *persistence.GetReplicationTasksRequest) ( *persistence.InternalGetReplicationTasksResponse, error, )
func (*FaultInjectionExecutionStore) GetReplicationTasksFromDLQ ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetReplicationTasksFromDLQ(request *persistence.GetReplicationTasksFromDLQRequest) ( *persistence.InternalGetReplicationTasksFromDLQResponse, error, )
func (*FaultInjectionExecutionStore) GetTimerTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetTimerTask(request *persistence.GetTimerTaskRequest) ( *persistence.InternalGetTimerTaskResponse, error, )
func (*FaultInjectionExecutionStore) GetTimerTasks ¶ added in v1.14.0
func (e *FaultInjectionExecutionStore) GetTimerTasks(request *persistence.GetTimerTasksRequest) ( *persistence.InternalGetTimerTasksResponse, error, )
func (*FaultInjectionExecutionStore) GetTransferTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetTransferTask(request *persistence.GetTransferTaskRequest) ( *persistence.InternalGetTransferTaskResponse, error, )
func (*FaultInjectionExecutionStore) GetTransferTasks ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetTransferTasks(request *persistence.GetTransferTasksRequest) ( *persistence.InternalGetTransferTasksResponse, error, )
func (*FaultInjectionExecutionStore) GetVisibilityTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetVisibilityTask(request *persistence.GetVisibilityTaskRequest) ( *persistence.InternalGetVisibilityTaskResponse, error, )
func (*FaultInjectionExecutionStore) GetVisibilityTasks ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetVisibilityTasks(request *persistence.GetVisibilityTasksRequest) ( *persistence.InternalGetVisibilityTasksResponse, error, )
func (*FaultInjectionExecutionStore) GetWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) GetWorkflowExecution(request *persistence.GetWorkflowExecutionRequest) ( *persistence.InternalGetWorkflowExecutionResponse, error, )
func (*FaultInjectionExecutionStore) ListConcreteExecutions ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) ListConcreteExecutions(request *persistence.ListConcreteExecutionsRequest) ( *persistence.InternalListConcreteExecutionsResponse, error, )
func (*FaultInjectionExecutionStore) PutReplicationTaskToDLQ ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) PutReplicationTaskToDLQ(request *persistence.PutReplicationTaskToDLQRequest) error
func (*FaultInjectionExecutionStore) RangeCompleteReplicationTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) RangeCompleteReplicationTask(request *persistence.RangeCompleteReplicationTaskRequest) error
func (*FaultInjectionExecutionStore) RangeCompleteTimerTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) RangeCompleteTimerTask(request *persistence.RangeCompleteTimerTaskRequest) error
func (*FaultInjectionExecutionStore) RangeCompleteTransferTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) RangeCompleteTransferTask(request *persistence.RangeCompleteTransferTaskRequest) error
func (*FaultInjectionExecutionStore) RangeCompleteVisibilityTask ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) RangeCompleteVisibilityTask(request *persistence.RangeCompleteVisibilityTaskRequest) error
func (*FaultInjectionExecutionStore) RangeDeleteReplicationTaskFromDLQ ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) RangeDeleteReplicationTaskFromDLQ(request *persistence.RangeDeleteReplicationTaskFromDLQRequest) error
func (*FaultInjectionExecutionStore) ReadHistoryBranch ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) ReadHistoryBranch(request *persistence.InternalReadHistoryBranchRequest) ( *persistence.InternalReadHistoryBranchResponse, error, )
func (*FaultInjectionExecutionStore) UpdateRate ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) UpdateRate(rate float64)
func (*FaultInjectionExecutionStore) UpdateWorkflowExecution ¶ added in v1.12.0
func (e *FaultInjectionExecutionStore) UpdateWorkflowExecution(request *persistence.InternalUpdateWorkflowExecutionRequest) error
type FaultInjectionMetadataStore ¶ added in v1.12.0
type FaultInjectionMetadataStore struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionMetadataStore ¶ added in v1.12.0
func NewFaultInjectionMetadataStore( rate float64, metadataStore persistence.MetadataStore, ) (*FaultInjectionMetadataStore, error)
func (*FaultInjectionMetadataStore) Close ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) Close()
func (*FaultInjectionMetadataStore) CreateNamespace ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) CreateNamespace(request *persistence.InternalCreateNamespaceRequest) ( *persistence.CreateNamespaceResponse, error, )
func (*FaultInjectionMetadataStore) DeleteNamespace ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) DeleteNamespace(request *persistence.DeleteNamespaceRequest) error
func (*FaultInjectionMetadataStore) DeleteNamespaceByName ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) DeleteNamespaceByName(request *persistence.DeleteNamespaceByNameRequest) error
func (*FaultInjectionMetadataStore) GetMetadata ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) GetMetadata() (*persistence.GetMetadataResponse, error)
func (*FaultInjectionMetadataStore) GetName ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) GetName() string
func (*FaultInjectionMetadataStore) GetNamespace ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) GetNamespace(request *persistence.GetNamespaceRequest) ( *persistence.InternalGetNamespaceResponse, error, )
func (*FaultInjectionMetadataStore) ListNamespaces ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) ListNamespaces(request *persistence.ListNamespacesRequest) ( *persistence.InternalListNamespacesResponse, error, )
func (*FaultInjectionMetadataStore) UpdateNamespace ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) UpdateNamespace(request *persistence.InternalUpdateNamespaceRequest) error
func (*FaultInjectionMetadataStore) UpdateRate ¶ added in v1.12.0
func (m *FaultInjectionMetadataStore) UpdateRate(rate float64)
type FaultInjectionQueue ¶ added in v1.12.0
type FaultInjectionQueue struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionQueue ¶ added in v1.12.0
func NewFaultInjectionQueue(rate float64, baseQueue persistence.Queue) (*FaultInjectionQueue, error)
func (*FaultInjectionQueue) Close ¶ added in v1.12.0
func (q *FaultInjectionQueue) Close()
func (*FaultInjectionQueue) DeleteMessageFromDLQ ¶ added in v1.12.0
func (q *FaultInjectionQueue) DeleteMessageFromDLQ(messageID int64) error
func (*FaultInjectionQueue) DeleteMessagesBefore ¶ added in v1.12.0
func (q *FaultInjectionQueue) DeleteMessagesBefore(messageID int64) error
func (*FaultInjectionQueue) EnqueueMessage ¶ added in v1.12.0
func (q *FaultInjectionQueue) EnqueueMessage(blob commonpb.DataBlob) error
func (*FaultInjectionQueue) EnqueueMessageToDLQ ¶ added in v1.12.0
func (q *FaultInjectionQueue) EnqueueMessageToDLQ(blob commonpb.DataBlob) (int64, error)
func (*FaultInjectionQueue) GetAckLevels ¶ added in v1.12.0
func (q *FaultInjectionQueue) GetAckLevels() (*persistence.InternalQueueMetadata, error)
func (*FaultInjectionQueue) GetDLQAckLevels ¶ added in v1.12.0
func (q *FaultInjectionQueue) GetDLQAckLevels() (*persistence.InternalQueueMetadata, error)
func (*FaultInjectionQueue) Init ¶ added in v1.12.0
func (q *FaultInjectionQueue) Init(blob *commonpb.DataBlob) error
func (*FaultInjectionQueue) RangeDeleteMessagesFromDLQ ¶ added in v1.12.0
func (q *FaultInjectionQueue) RangeDeleteMessagesFromDLQ(firstMessageID int64, lastMessageID int64) error
func (*FaultInjectionQueue) ReadMessages ¶ added in v1.12.0
func (q *FaultInjectionQueue) ReadMessages(lastMessageID int64, maxCount int) ([]*persistence.QueueMessage, error)
func (*FaultInjectionQueue) ReadMessagesFromDLQ ¶ added in v1.12.0
func (q *FaultInjectionQueue) ReadMessagesFromDLQ( firstMessageID int64, lastMessageID int64, pageSize int, pageToken []byte, ) ([]*persistence.QueueMessage, []byte, error)
func (*FaultInjectionQueue) UpdateAckLevel ¶ added in v1.12.0
func (q *FaultInjectionQueue) UpdateAckLevel(metadata *persistence.InternalQueueMetadata) error
func (*FaultInjectionQueue) UpdateDLQAckLevel ¶ added in v1.12.0
func (q *FaultInjectionQueue) UpdateDLQAckLevel(metadata *persistence.InternalQueueMetadata) error
func (*FaultInjectionQueue) UpdateRate ¶ added in v1.12.0
func (q *FaultInjectionQueue) UpdateRate(rate float64)
type FaultInjectionShardStore ¶ added in v1.12.0
type FaultInjectionShardStore struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionShardStore ¶ added in v1.12.0
func NewFaultInjectionShardStore( rate float64, baseShardStore persistence.ShardStore, ) (*FaultInjectionShardStore, error)
func (*FaultInjectionShardStore) Close ¶ added in v1.12.0
func (s *FaultInjectionShardStore) Close()
func (*FaultInjectionShardStore) GetClusterName ¶ added in v1.12.0
func (s *FaultInjectionShardStore) GetClusterName() string
func (*FaultInjectionShardStore) GetName ¶ added in v1.12.0
func (s *FaultInjectionShardStore) GetName() string
func (*FaultInjectionShardStore) GetOrCreateShard ¶ added in v1.14.0
func (s *FaultInjectionShardStore) GetOrCreateShard(request *persistence.InternalGetOrCreateShardRequest) ( *persistence.InternalGetOrCreateShardResponse, error, )
func (*FaultInjectionShardStore) UpdateRate ¶ added in v1.12.0
func (s *FaultInjectionShardStore) UpdateRate(rate float64)
func (*FaultInjectionShardStore) UpdateShard ¶ added in v1.12.0
func (s *FaultInjectionShardStore) UpdateShard(request *persistence.InternalUpdateShardRequest) error
type FaultInjectionTaskStore ¶ added in v1.12.0
type FaultInjectionTaskStore struct { ErrorGenerator ErrorGenerator // contains filtered or unexported fields }
func NewFaultInjectionTaskStore ¶ added in v1.12.0
func NewFaultInjectionTaskStore( rate float64, baseTaskStore persistence.TaskStore, ) (*FaultInjectionTaskStore, error)
func (*FaultInjectionTaskStore) Close ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) Close()
func (*FaultInjectionTaskStore) CompleteTask ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) CompleteTask(request *persistence.CompleteTaskRequest) error
func (*FaultInjectionTaskStore) CompleteTasksLessThan ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) CompleteTasksLessThan(request *persistence.CompleteTasksLessThanRequest) ( int, error, )
func (*FaultInjectionTaskStore) CreateTaskQueue ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) CreateTaskQueue(request *persistence.InternalCreateTaskQueueRequest) error
func (*FaultInjectionTaskStore) CreateTasks ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) CreateTasks(request *persistence.InternalCreateTasksRequest) ( *persistence.CreateTasksResponse, error, )
func (*FaultInjectionTaskStore) DeleteTaskQueue ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) DeleteTaskQueue(request *persistence.DeleteTaskQueueRequest) error
func (*FaultInjectionTaskStore) GetName ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) GetName() string
func (*FaultInjectionTaskStore) GetTaskQueue ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) GetTaskQueue(request *persistence.InternalGetTaskQueueRequest) ( *persistence.InternalGetTaskQueueResponse, error, )
func (*FaultInjectionTaskStore) GetTasks ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) GetTasks(request *persistence.GetTasksRequest) ( *persistence.InternalGetTasksResponse, error, )
func (*FaultInjectionTaskStore) ListTaskQueue ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) ListTaskQueue(request *persistence.ListTaskQueueRequest) ( *persistence.InternalListTaskQueueResponse, error, )
func (*FaultInjectionTaskStore) UpdateRate ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) UpdateRate(rate float64)
func (*FaultInjectionTaskStore) UpdateTaskQueue ¶ added in v1.12.0
func (t *FaultInjectionTaskStore) UpdateTaskQueue(request *persistence.InternalUpdateTaskQueueRequest) ( *persistence.UpdateTaskQueueResponse, error, )
type FaultMetadata ¶ added in v1.12.0
type FaultMetadata struct {
// contains filtered or unexported fields
}
type FaultWeight ¶ added in v1.12.0
type FaultWeight struct {
// contains filtered or unexported fields
}
type MockBean ¶
type MockBean struct {
// contains filtered or unexported fields
}
MockBean is a mock of Bean interface.
func NewMockBean ¶
func NewMockBean(ctrl *gomock.Controller) *MockBean
NewMockBean creates a new mock instance.
func (*MockBean) EXPECT ¶
func (m *MockBean) EXPECT() *MockBeanMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBean) GetClusterMetadataManager ¶
func (m *MockBean) GetClusterMetadataManager() persistence.ClusterMetadataManager
GetClusterMetadataManager mocks base method.
func (*MockBean) GetExecutionManager ¶
func (m *MockBean) GetExecutionManager() persistence.ExecutionManager
GetExecutionManager mocks base method.
func (*MockBean) GetMetadataManager ¶
func (m *MockBean) GetMetadataManager() persistence.MetadataManager
GetMetadataManager mocks base method.
func (*MockBean) GetNamespaceReplicationQueue ¶
func (m *MockBean) GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue
GetNamespaceReplicationQueue mocks base method.
func (*MockBean) GetShardManager ¶
func (m *MockBean) GetShardManager() persistence.ShardManager
GetShardManager mocks base method.
func (*MockBean) GetTaskManager ¶
func (m *MockBean) GetTaskManager() persistence.TaskManager
GetTaskManager mocks base method.
type MockBeanMockRecorder ¶
type MockBeanMockRecorder struct {
// contains filtered or unexported fields
}
MockBeanMockRecorder is the mock recorder for MockBean.
func (*MockBeanMockRecorder) Close ¶
func (mr *MockBeanMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockBeanMockRecorder) GetClusterMetadataManager ¶
func (mr *MockBeanMockRecorder) GetClusterMetadataManager() *gomock.Call
GetClusterMetadataManager indicates an expected call of GetClusterMetadataManager.
func (*MockBeanMockRecorder) GetExecutionManager ¶
func (mr *MockBeanMockRecorder) GetExecutionManager() *gomock.Call
GetExecutionManager indicates an expected call of GetExecutionManager.
func (*MockBeanMockRecorder) GetMetadataManager ¶
func (mr *MockBeanMockRecorder) GetMetadataManager() *gomock.Call
GetMetadataManager indicates an expected call of GetMetadataManager.
func (*MockBeanMockRecorder) GetNamespaceReplicationQueue ¶
func (mr *MockBeanMockRecorder) GetNamespaceReplicationQueue() *gomock.Call
GetNamespaceReplicationQueue indicates an expected call of GetNamespaceReplicationQueue.
func (*MockBeanMockRecorder) GetShardManager ¶
func (mr *MockBeanMockRecorder) GetShardManager() *gomock.Call
GetShardManager indicates an expected call of GetShardManager.
func (*MockBeanMockRecorder) GetTaskManager ¶
func (mr *MockBeanMockRecorder) GetTaskManager() *gomock.Call
GetTaskManager indicates an expected call of GetTaskManager.
type NoopErrorGenerator ¶ added in v1.12.0
type NoopErrorGenerator struct{}
func NewNoopErrorGenerator ¶ added in v1.12.0
func NewNoopErrorGenerator() *NoopErrorGenerator
func (*NoopErrorGenerator) Generate ¶ added in v1.12.0
func (p *NoopErrorGenerator) Generate() error
func (*NoopErrorGenerator) Rate ¶ added in v1.13.0
func (p *NoopErrorGenerator) Rate() float64
func (*NoopErrorGenerator) UpdateRate ¶ added in v1.12.0
func (p *NoopErrorGenerator) UpdateRate(rate float64)
func (*NoopErrorGenerator) UpdateWeights ¶ added in v1.12.0
func (p *NoopErrorGenerator) UpdateWeights(weights []FaultWeight)
type PersistenceMaxQps ¶ added in v1.13.0
type PersistenceMaxQps dynamicconfig.IntPropertyFn