Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options *pg.Options, logger logrus.FieldLogger) eventstore.Store
New returns a Postgres backed store
Types ¶
type DebugHook ¶
type DebugHook struct {
// contains filtered or unexported fields
}
func NewDebugHook ¶
func NewDebugHook(logger logrus.FieldLogger) *DebugHook
func (DebugHook) AfterQuery ¶
type PgStore ¶
type PgStore struct {
// contains filtered or unexported fields
}
func (*PgStore) Load ¶
func (p *PgStore) Load(ctx context.Context, aggregateID model.ID, tenantID model.ID, fromVersion, toVersion model.Version) (eventstore.History, error)
Load the history of events from PgStore, up to the version specified. When toVersion is 0, all events will be loaded. To start at the beginning, fromVersion should be set to 0
Click to show internal directories.
Click to hide internal directories.