Documentation ¶
Index ¶
- type ItemMemoryRepository
- func (r *ItemMemoryRepository) Create(ctx context.Context, item *domain.Item) (string, error)
- func (r *ItemMemoryRepository) Delete(ctx context.Context, id string) error
- func (r *ItemMemoryRepository) Fetch(ctx context.Context, criteria domain.ItemCriteria) (*domain.ItemPage, error)
- func (r *ItemMemoryRepository) Get(ctx context.Context, id string) (*domain.Item, error)
- func (r *ItemMemoryRepository) Update(ctx context.Context, item *domain.Item) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemMemoryRepository ¶
type ItemMemoryRepository struct { }
func NewItemMemoryRepository ¶
func NewItemMemoryRepository() *ItemMemoryRepository
func (*ItemMemoryRepository) Delete ¶
func (r *ItemMemoryRepository) Delete(ctx context.Context, id string) error
func (*ItemMemoryRepository) Fetch ¶
func (r *ItemMemoryRepository) Fetch(ctx context.Context, criteria domain.ItemCriteria) (*domain.ItemPage, error)
Click to show internal directories.
Click to hide internal directories.