Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultURI ...
DefaultURI = "mongodb://localhost:27017"
)
Variables ¶
This section is empty.
Functions ¶
func NewEventStore ¶
func NewEventStore(ctx context.Context, eventCfg cqrs.EventConfig, opts ...Option) (cqrs.EventStore, error)
NewEventStore ...
func WithEventStoreFactory ¶
WithEventStoreFactory ...
Types ¶
type Config ¶
type Config struct { URI string Database string Publisher cqrs.EventPublisher Transactions bool CreateIndexes bool ClientOptions []*options.ClientOptions }
Config ...
type InconsistentEventError ¶
type InconsistentEventError struct { ExpectedAggregateType cqrs.AggregateType ProvidedAggregateType cqrs.AggregateType ExpectedAggregateID uuid.UUID ProvidedAggregateID uuid.UUID }
InconsistentEventError ...
func (InconsistentEventError) Error ¶
func (err InconsistentEventError) Error() string
Click to show internal directories.
Click to hide internal directories.