Documentation ¶
Index ¶
Constants ¶
View Source
const ( DBTypePostgres = "PostgreSQL" DBTypeMySQL = "MySQL" )
Variables ¶
This section is empty.
Functions ¶
func NewSnapshotStore ¶
Types ¶
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
func NewEventStore ¶
func NewEventStore(tableName string, db DB, registry registry.Registry) EventStore
func (EventStore) Load ¶
func (s EventStore) Load(ctx context.Context, aggregate esourcing.EventSourcedAggregate) (err error)
func (EventStore) Save ¶
func (s EventStore) Save(ctx context.Context, aggregate esourcing.EventSourcedAggregate) (err error)
type InboxStore ¶
type InboxStore struct {
// contains filtered or unexported fields
}
func NewInboxStore ¶
func NewInboxStore(tableName string, db DB) InboxStore
func (InboxStore) Save ¶
func (s InboxStore) Save(ctx context.Context, msg async.IncomingMessage) error
type OutboxStore ¶
type OutboxStore struct {
// contains filtered or unexported fields
}
func NewOutboxStore ¶
func NewOutboxStore(tableName string, db DB) OutboxStore
func (OutboxStore) FindUnpublished ¶
func (OutboxStore) MarkPublished ¶
func (s OutboxStore) MarkPublished(ctx context.Context, ids ...string) (err error)
type PostgresDB ¶
func (*PostgresDB) DBType ¶
func (p *PostgresDB) DBType() string
type SagaStore ¶
type SagaStore struct {
// contains filtered or unexported fields
}
func NewSagaStore ¶
type SnapshotStore ¶
type SnapshotStore struct { esourcing.AggregateStore // contains filtered or unexported fields }
func (SnapshotStore) Load ¶
func (s SnapshotStore) Load(ctx context.Context, aggregate esourcing.EventSourcedAggregate) error
func (SnapshotStore) Save ¶
func (s SnapshotStore) Save(ctx context.Context, aggregate esourcing.EventSourcedAggregate) error
Click to show internal directories.
Click to hide internal directories.