eventStore

package
v0.0.0-...-1d4a79d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoEventStore

type MongoEventStore struct {
	// contains filtered or unexported fields
}

MongoEventStore is the anchor struct for mongoDB repository implementation methods.

func NewMongoEventStore

func NewMongoEventStore(config *config.Configuration) (eventStore *MongoEventStore)

func (*MongoEventStore) Append

func (s *MongoEventStore) Append(events []domain.Event, aggregateType string) (err error)

Appends to events of a company

func (*MongoEventStore) EventsOf

func (s *MongoEventStore) EventsOf(aggregateId string, aggregateType string) (err error, events []map[string]interface{})

GetEvent retrieves the most recent event for a given drone.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL