Documentation
¶
Index ¶
- func Connect(ctx context.Context, dsn string) (*pgxpool.Pool, error)
- func DSNTest(t *testing.T) string
- func Migrate(ctx context.Context, db dbtx.DBTX, schema *Schema) error
- func ToDSN(conn *pgxpool.Conn) string
- type Listener
- type OutboxWatermark
- type Schema
- func (s *Schema) AdvisoryLock(ctx context.Context, db dbtx.DBTX, pid int) error
- func (s *Schema) AdvisoryUnlock(ctx context.Context, db dbtx.DBTX, pid int) error
- func (s *Schema) ApproveLease(ctx context.Context, db dbtx.DBTX, vnodes []uint32) error
- func (s *Schema) CreateMigrationTable(ctx context.Context, db dbtx.DBTX) error
- func (s *Schema) InsertLease(ctx context.Context, db dbtx.DBTX, vnode uint32, name string, ...) error
- func (s *Schema) InsertMigrationRow(ctx context.Context, db dbtx.DBTX, version uint32, name string, hash string) error
- func (s *Schema) InsertOutbox(ctx context.Context, tx dbtx.DBTX, streamType, streamID, storeStreamID string, ...) (int64, error)
- func (s *Schema) Listen(ctx context.Context, db dbtx.DBTX, partitions []uint32) error
- func (s *Schema) Notify(ctx context.Context, db dbtx.DBTX, partition uint32, payload string) error
- func (s *Schema) RefreshLeases(ctx context.Context, db dbtx.DBTX, nodeName string, ttl time.Duration) (leases.Ring, error)
- func (s *Schema) SelectCurrentMigration(ctx context.Context, db dbtx.DBTX) (uint32, error)
- func (s *Schema) SelectEvents(ctx context.Context, db dbtx.DBTX, streamType string, streamID string, ...) (pgx.Rows, error)
- func (s *Schema) SelectOutboxStreamIDs(ctx context.Context, db dbtx.DBTX, graceWindow time.Duration, ...) ([]es.StreamReference, error)
- func (s *Schema) SelectOutboxWatermark(ctx context.Context, db dbtx.DBTX, stream es.StreamReference) (OutboxWatermark, int64, error)
- func (s *Schema) SelectStreamReferences(ctx context.Context, db dbtx.DBTX, streamType string, token string, ...) (pgx.Rows, error)
- func (s *Schema) Unlisten(ctx context.Context, db dbtx.DBTX, partitions []uint32) error
- func (s *Schema) UpdateOutbox(ctx context.Context, tx dbtx.DBTX, streamType, streamID string, ...) (int64, error)
- func (s *Schema) UpdateOutboxWatermark(ctx context.Context, db dbtx.DBTX, stream es.StreamReference, ...) error
- func (s *Schema) WriteEvent(ctx context.Context, db dbtx.DBTX, event es.Event, content []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OutboxWatermark ¶
type Schema ¶
type Schema struct {
Prefix string
}
func (*Schema) AdvisoryLock ¶
func (*Schema) AdvisoryUnlock ¶
func (*Schema) ApproveLease ¶
func (*Schema) CreateMigrationTable ¶
func (*Schema) InsertLease ¶
func (*Schema) InsertMigrationRow ¶
func (*Schema) InsertOutbox ¶
func (*Schema) RefreshLeases ¶
func (*Schema) SelectCurrentMigration ¶
func (*Schema) SelectEvents ¶
func (*Schema) SelectOutboxStreamIDs ¶
func (*Schema) SelectOutboxWatermark ¶
func (s *Schema) SelectOutboxWatermark(ctx context.Context, db dbtx.DBTX, stream es.StreamReference) (OutboxWatermark, int64, error)
func (*Schema) SelectStreamReferences ¶
func (*Schema) UpdateOutbox ¶
func (*Schema) UpdateOutboxWatermark ¶
Click to show internal directories.
Click to hide internal directories.