Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregateDB ¶
type AggregateDB struct { ID string `json:"_id"` Version int `json:"version"` Events []EventDB `json:"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 boltdb
func (*Client) CloseClient ¶
CloseClient closes the db connection
type EventDB ¶
type EventDB struct { Type string `json:"event_type"` AggregateID string `json:"_id"` RawData []byte `json:"data,omitempty"` Timestamp time.Time `json:"timestamp"` AggregateType string `json:"aggregate_type"` Version int `json:"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.