Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregateDB ¶
type AggregateDB struct { ID string `bson:"_id"` Version int `bson:"version"` Events []EventDB `bson:"events"` }
AggregateDB defines the collection to store the aggregate with their events
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for access to mongodb
type EventDB ¶
type EventDB struct { Type string `bson:"event_type"` AggregateID string `bson:"_id"` RawData bson.Raw `bson:"data,omitempty"` Timestamp time.Time `bson:"timestamp"` AggregateType string `bson:"aggregate_type"` Version int `bson:"version"` // contains filtered or unexported fields }
EventDB defines the structure of the events to be stored
Click to show internal directories.
Click to hide internal directories.