Documentation ¶
Index ¶
- type Repo
- func (r *Repo) Find(ctx context.Context, id eh.UUID) (interface{}, error)
- func (r *Repo) FindAll(ctx context.Context) ([]interface{}, error)
- func (r *Repo) Parent() eh.ReadRepo
- func (r *Repo) Remove(ctx context.Context, id eh.UUID) error
- func (r *Repo) Save(ctx context.Context, id eh.UUID, model interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo implements an in memory repository of read models.
func Repository ¶
Repository returns a parent ReadRepo if there is one.
func (*Repo) FindAll ¶
FindAll implements the FindAll method of the eventhorizon.ReadRepo interface.
Click to show internal directories.
Click to hide internal directories.