Documentation ¶
Index ¶
- Variables
- func NewDatabaseEventStore(db *sql.DB) cqrs.EventStore
- type EventStore
- func (s *EventStore) FindStream(aggregateTypes []string, aggregateIds []uuid.UUID, eventTypes []string) (cqrs.EventStream, error)
- func (s *EventStore) LoadStream(aggregateType string, aggregateId uuid.UUID, version int) (cqrs.EventStream, error)
- func (s *EventStore) WriteEvent(aggregateType string, events ...cqrs.Event) error
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAffectedRows = errors.New("No affected rows")
Functions ¶
func NewDatabaseEventStore ¶
Types ¶
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
func (*EventStore) FindStream ¶
func (s *EventStore) FindStream(aggregateTypes []string, aggregateIds []uuid.UUID, eventTypes []string) (cqrs.EventStream, error)
func (*EventStore) LoadStream ¶
func (s *EventStore) LoadStream(aggregateType string, aggregateId uuid.UUID, version int) (cqrs.EventStream, error)
func (*EventStore) WriteEvent ¶
func (s *EventStore) WriteEvent(aggregateType string, events ...cqrs.Event) error
Click to show internal directories.
Click to hide internal directories.