Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadRepository ¶
type ReadRepository struct {
// contains filtered or unexported fields
}
ReadRepository implements an in memory repository of read models.
func NewReadRepository ¶
func NewReadRepository() *ReadRepository
NewReadRepository creates a new ReadRepository.
func (*ReadRepository) Find ¶
func (r *ReadRepository) Find(id eh.UUID) (interface{}, error)
Find returns one read model with using an id. Returns ErrModelNotFound if no model could be found.
func (*ReadRepository) FindAll ¶
func (r *ReadRepository) FindAll() ([]interface{}, error)
FindAll returns all read models in the repository.
Click to show internal directories.
Click to hide internal directories.