Documentation
¶
Overview ¶
Package store provides in-memory implementations of models.Store for use in tests.
Index ¶
- type Memory
- func (s *Memory) Append(ctx context.Context, aggregateID string, version int64, data []byte) error
- func (s *Memory) Count(ctx context.Context, aggregateID string, fromVersion int64) (int64, error)
- func (s *Memory) Delete(ctx context.Context, aggregateID string) error
- func (s *Memory) ReadFrom(ctx context.Context, aggregateID string, fromVersion int64) ([][]byte, error)
- func (s *Memory) ReadRange(ctx context.Context, aggregateID string, fromVersion, count int64) ([][]byte, error)
- func (s *Memory) SetError(aggregateID string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is a thread-safe in-memory implementation of models.Store. Only for testing.
Click to show internal directories.
Click to hide internal directories.