Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, collectionName string, mongoDB *mongo.Database) (baseeventstore.EventStore, error)
New creates new mongo event store
Types ¶
type DTO ¶
type DTO struct { ID string `bson:"event_id"` Type string `bson:"event_type"` StreamID string `bson:"stream_id"` StreamName string `bson:"stream_name"` StreamVersion int `bson:"stream_version"` OccurredAt time.Time `bson:"occurred_at"` ExpiresAt *time.Time `bson:"expires_at,omitempty"` Payload bson.Raw `bson:"payload"` Metadata *EventMetadataDTO `bson:"metadata,omitempty"` }
Click to show internal directories.
Click to hide internal directories.