Documentation ¶
Index ¶
- func GetDatabaseName(ctx context.Context) string
- type DatabaseNameCtxKey
- type Manager
- func (m *Manager) GetPublisher(dbName string) *Publisher
- func (m *Manager) OnPostCommit(_ context.Context, _ *metadata.Tenant, _ kv.EventListener) error
- func (m *Manager) OnPreCommit(ctx context.Context, _ *metadata.Tenant, tx transaction.Tx, ...) error
- func (m *Manager) OnRollback(ctx context.Context, _ *metadata.Tenant, events kv.EventListener)
- func (m *Manager) WrapContext(ctx context.Context, dbName string) context.Context
- type Publisher
- type PublisherKeySpace
- type Streamer
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabaseName ¶
Types ¶
type DatabaseNameCtxKey ¶
type DatabaseNameCtxKey struct{}
type Manager ¶
func NewManager ¶
func NewManager() *Manager
func (*Manager) GetPublisher ¶
func (*Manager) OnPostCommit ¶
func (*Manager) OnPreCommit ¶
func (m *Manager) OnPreCommit(ctx context.Context, _ *metadata.Tenant, tx transaction.Tx, events kv.EventListener) error
func (*Manager) OnRollback ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func (*Publisher) NewStreamer ¶
func (p *Publisher) NewStreamer(kvStore kv.KeyValueStore) (*Streamer, error)
func (*Publisher) OnCommit ¶
func (p *Publisher) OnCommit(ctx context.Context, tx transaction.Tx, listener kv.EventListener) error
func (*Publisher) OnRollback ¶
func (p *Publisher) OnRollback(_ context.Context, _ kv.EventListener)
type PublisherKeySpace ¶
type PublisherKeySpace struct {
// contains filtered or unexported fields
}
func NewPublisherKeySpace ¶
func NewPublisherKeySpace(dbName string) *PublisherKeySpace
Click to show internal directories.
Click to hide internal directories.