Documentation ¶
Index ¶
- func GetEventsAfter(events []storage.EventRecord, last uuid.UUID) []storage.EventRecord
- func InMemoryStorage() storage.Storage
- type IdLinks
- type InMemoryCommandStore
- type InMemoryEventStore
- func (store *InMemoryEventStore) Add(ctx context.Context, events []storage.EventRecord) error
- func (store *InMemoryEventStore) FetchAggregatedSince(ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, ...) ([]storage.EventRecord, error)
- func (store *InMemoryEventStore) FetchSince(ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, ...) ([]storage.EventRecord, error)
- type InMemoryMapStore
- func (maps *InMemoryMapStore) AddId(ctx context.Context, actorName string, ids spry.Identifiers, uid uuid.UUID) error
- func (maps *InMemoryMapStore) AddLink(ctx context.Context, parentType string, parentId uuid.UUID, childType string, ...) error
- func (maps *InMemoryMapStore) GetId(ctx context.Context, actorName string, ids spry.Identifiers) (uuid.UUID, error)
- func (maps *InMemoryMapStore) GetIdMap(ctx context.Context, actorName string, uid uuid.UUID) (storage.AggregateIdMap, error)
- type InMemorySnapshotStore
- type InMemoryTxProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEventsAfter ¶
func GetEventsAfter(events []storage.EventRecord, last uuid.UUID) []storage.EventRecord
func InMemoryStorage ¶
Types ¶
type InMemoryCommandStore ¶
type InMemoryCommandStore struct {
Commands map[uuid.UUID][]storage.CommandRecord
}
func (*InMemoryCommandStore) Add ¶
func (store *InMemoryCommandStore) Add( ctx context.Context, actorName string, command storage.CommandRecord) error
type InMemoryEventStore ¶
type InMemoryEventStore struct {
Events map[uuid.UUID][]storage.EventRecord
}
func (*InMemoryEventStore) Add ¶
func (store *InMemoryEventStore) Add(ctx context.Context, events []storage.EventRecord) error
func (*InMemoryEventStore) FetchAggregatedSince ¶
func (store *InMemoryEventStore) FetchAggregatedSince( ctx context.Context, actorName string, actorId uuid.UUID, eventUUID uuid.UUID, idMap storage.LastEventMap, types storage.TypeMap) ([]storage.EventRecord, error)
func (*InMemoryEventStore) FetchSince ¶
type InMemoryMapStore ¶
func (*InMemoryMapStore) AddId ¶
func (maps *InMemoryMapStore) AddId(ctx context.Context, actorName string, ids spry.Identifiers, uid uuid.UUID) error
type InMemorySnapshotStore ¶
type InMemoryTxProvider ¶
type InMemoryTxProvider struct { }
func (InMemoryTxProvider) Commit ¶
func (provider InMemoryTxProvider) Commit(ctx context.Context) error
func (InMemoryTxProvider) GetTransaction ¶
Click to show internal directories.
Click to hide internal directories.