Documentation
¶
Index ¶
- func CreatePostgresStorage(connectionURI string) storage.Storage
- type PostgresCommandStore
- type PostgresEventStore
- func (store *PostgresEventStore) Add(ctx context.Context, events []storage.EventRecord) error
- func (store *PostgresEventStore) FetchAggregatedSince(ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, ...) ([]storage.EventRecord, error)
- func (store *PostgresEventStore) FetchSince(ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, ...) ([]storage.EventRecord, error)
- type PostgresMapStore
- func (store *PostgresMapStore) AddId(ctx context.Context, actorName string, ids spry.Identifiers, uid uuid.UUID) error
- func (store *PostgresMapStore) AddLink(ctx context.Context, parentType string, parentId uuid.UUID, childType string, ...) error
- func (store *PostgresMapStore) GetId(ctx context.Context, actorName string, ids spry.Identifiers) (uuid.UUID, error)
- func (store *PostgresMapStore) GetIdMap(ctx context.Context, actorName string, uid uuid.UUID) (storage.AggregateIdMap, error)
- type PostgresSnapshotStore
- type PostgresTxProvider
- type QueryData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePostgresStorage ¶
Types ¶
type PostgresCommandStore ¶
type PostgresCommandStore struct { Pool *pgxpool.Pool Templates storage.StringTemplate }
func (*PostgresCommandStore) Add ¶
func (store *PostgresCommandStore) Add(ctx context.Context, actorName string, command storage.CommandRecord) error
type PostgresEventStore ¶
type PostgresEventStore struct { Pool *pgxpool.Pool Templates storage.StringTemplate }
func (*PostgresEventStore) Add ¶
func (store *PostgresEventStore) Add(ctx context.Context, events []storage.EventRecord) error
func (*PostgresEventStore) FetchAggregatedSince ¶
func (store *PostgresEventStore) FetchAggregatedSince( ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, idMap storage.LastEventMap, types storage.TypeMap) ([]storage.EventRecord, error)
func (*PostgresEventStore) FetchSince ¶
type PostgresMapStore ¶
type PostgresMapStore struct { Pool *pgxpool.Pool Templates storage.StringTemplate }
func (*PostgresMapStore) AddId ¶
func (store *PostgresMapStore) AddId(ctx context.Context, actorName string, ids spry.Identifiers, uid uuid.UUID) error
type PostgresSnapshotStore ¶
type PostgresSnapshotStore struct { Pool *pgxpool.Pool Templates storage.StringTemplate }
type PostgresTxProvider ¶
func (PostgresTxProvider) GetTransaction ¶
func (txp PostgresTxProvider) GetTransaction(ctx context.Context) (pgx.Tx, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.