Documentation ¶
Index ¶
- type CRDB
- func (db *CRDB) Filter(ctx context.Context, searchQuery *repository.SearchQuery) (events []*repository.Event, err error)
- func (db *CRDB) Health(ctx context.Context) error
- func (db *CRDB) LatestSequence(ctx context.Context, searchQuery *repository.SearchQuery) (uint64, error)
- func (db *CRDB) Push(ctx context.Context, events []*repository.Event, ...) error
- func (db *CRDB) Step20(ctx context.Context, latestSequence uint64) error
- type Data
- type Sequence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDB ¶
type CRDB struct {
// contains filtered or unexported fields
}
func (*CRDB) Filter ¶
func (db *CRDB) Filter(ctx context.Context, searchQuery *repository.SearchQuery) (events []*repository.Event, err error)
Filter returns all events matching the given search query
func (*CRDB) LatestSequence ¶
func (db *CRDB) LatestSequence(ctx context.Context, searchQuery *repository.SearchQuery) (uint64, error)
LatestSequence returns the latests sequence found by the the search query
func (*CRDB) Push ¶
func (db *CRDB) Push(ctx context.Context, events []*repository.Event, uniqueConstraints ...*repository.UniqueConstraint) error
Push adds all events to the eventstreams of the aggregates. This call is transaction save. The transaction will be rolled back if one event fails
type Data ¶
type Data []byte
Data represents a byte array that may be null. Data implements the sql.Scanner interface
Click to show internal directories.
Click to hide internal directories.