Documentation ¶
Index ¶
- func GetRegisteredPluginNames() []string
- func NewHistoryV2Persistence(db sqlplugin.DB, logger log.Logger, parser serialization.Parser) (persistence.HistoryStore, error)
- func NewSQLAdminDB(cfg *config.SQL) (sqlplugin.AdminDB, error)
- func NewSQLConfigStore(db sqlplugin.DB, logger log.Logger, parser serialization.Parser) (persistence.ConfigStore, error)
- func NewSQLDB(cfg *config.SQL) (sqlplugin.DB, error)
- func NewSQLExecutionStore(db sqlplugin.DB, logger log.Logger, shardID int, parser serialization.Parser, ...) (p.ExecutionStore, error)
- func NewSQLVisibilityStore(cfg config.SQL, logger log.Logger) (p.VisibilityStore, error)
- func NewShardPersistence(db sqlplugin.DB, currentClusterName string, log log.Logger, ...) (persistence.ShardStore, error)
- func NewTestCluster(pluginName, dbName, username, password, host string, port int, ...) (testcluster.PersistenceTestCluster, error)
- func PluginRegistered(pluginName string) bool
- func RegisterPlugin(pluginName string, plugin sqlplugin.Plugin)
- func RegisterPluginIfNotExists(pluginName string, plugin sqlplugin.Plugin)
- type Factory
- func (f *Factory) Close()
- func (f *Factory) NewConfigStore() (p.ConfigStore, error)
- func (f *Factory) NewDomainStore() (p.DomainStore, error)
- func (f *Factory) NewExecutionStore(shardID int) (p.ExecutionStore, error)
- func (f *Factory) NewHistoryStore() (p.HistoryStore, error)
- func (f *Factory) NewQueue(queueType p.QueueType) (p.Queue, error)
- func (f *Factory) NewShardStore() (p.ShardStore, error)
- func (f *Factory) NewTaskStore() (p.TaskStore, error)
- func (f *Factory) NewVisibilityStore(sortByCloseTime bool) (p.VisibilityStore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegisteredPluginNames ¶ added in v0.21.2
func GetRegisteredPluginNames() []string
GetRegisteredPluginNames returns the list of registered plugin names
func NewHistoryV2Persistence ¶ added in v0.22.0
func NewHistoryV2Persistence( db sqlplugin.DB, logger log.Logger, parser serialization.Parser, ) (persistence.HistoryStore, error)
NewHistoryV2Persistence creates an instance of HistoryManager
func NewSQLAdminDB ¶ added in v0.11.0
NewSQLAdminDB returns a AdminDB
func NewSQLConfigStore ¶ added in v1.2.1
func NewSQLConfigStore( db sqlplugin.DB, logger log.Logger, parser serialization.Parser, ) (persistence.ConfigStore, error)
NewSQLConfigStore creates a config store for SQL
func NewSQLDB ¶ added in v0.11.0
NewSQLDB creates a returns a reference to a logical connection to the underlying SQL database. The returned object is to tied to a single SQL database and the object can be used to perform CRUD operations on the tables in the database
func NewSQLExecutionStore ¶ added in v0.5.0
func NewSQLExecutionStore( db sqlplugin.DB, logger log.Logger, shardID int, parser serialization.Parser, dc *p.DynamicConfiguration, ) (p.ExecutionStore, error)
NewSQLExecutionStore creates an instance of ExecutionStore
func NewSQLVisibilityStore ¶ added in v0.5.0
NewSQLVisibilityStore creates an instance of ExecutionStore
func NewShardPersistence ¶ added in v0.22.0
func NewShardPersistence( db sqlplugin.DB, currentClusterName string, log log.Logger, parser serialization.Parser, ) (persistence.ShardStore, error)
NewShardPersistence creates an instance of ShardStore
func NewTestCluster ¶
func NewTestCluster(pluginName, dbName, username, password, host string, port int, schemaDir string) (testcluster.PersistenceTestCluster, error)
NewTestCluster returns a new SQL test cluster
func PluginRegistered ¶ added in v0.19.1
PluginRegistered returns true if plugin with given name has been registered, false otherwise
func RegisterPlugin ¶ added in v0.11.0
RegisterPlugin will register a SQL plugin
func RegisterPluginIfNotExists ¶ added in v0.19.1
RegisterPluginIfNotExists will register a SQL plugin only if a plugin with same name has not already been registered
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory vends store objects backed by MySQL
func NewFactory ¶
func NewFactory( cfg config.SQL, clusterName string, logger log.Logger, parser serialization.Parser, dc *p.DynamicConfiguration, ) *Factory
NewFactory returns an instance of a factory object which can be used to create datastores backed by any kind of SQL store
func (*Factory) NewConfigStore ¶ added in v0.23.1
func (f *Factory) NewConfigStore() (p.ConfigStore, error)
NewConfigStore returns a new config store backed by sql. Not Yet Implemented.
func (*Factory) NewDomainStore ¶ added in v0.23.1
func (f *Factory) NewDomainStore() (p.DomainStore, error)
NewDomainStore returns a new metadata store
func (*Factory) NewExecutionStore ¶
func (f *Factory) NewExecutionStore(shardID int) (p.ExecutionStore, error)
NewExecutionStore returns an ExecutionStore for a given shardID
func (*Factory) NewHistoryStore ¶
func (f *Factory) NewHistoryStore() (p.HistoryStore, error)
NewHistoryStore returns a new history store
func (*Factory) NewShardStore ¶
func (f *Factory) NewShardStore() (p.ShardStore, error)
NewShardStore returns a new shard store
func (*Factory) NewTaskStore ¶
NewTaskStore returns a new task store
func (*Factory) NewVisibilityStore ¶
func (f *Factory) NewVisibilityStore(sortByCloseTime bool) (p.VisibilityStore, error)
NewVisibilityStore returns a visibility store TODO sortByCloseTime will be removed and implemented for https://github.com/uber/cadence/issues/3621