Documentation
¶
Index ¶
- type ItemRepo
- func (r *ItemRepo) Create(ctx context.Context, it domain.Item) (domain.Item, error)
- func (r *ItemRepo) Delete(ctx context.Context, id string) error
- func (r *ItemRepo) Get(ctx context.Context, id string) (domain.Item, error)
- func (r *ItemRepo) Update(ctx context.Context, id string, updates domain.Item) (domain.Item, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemRepo ¶
type ItemRepo struct {
// contains filtered or unexported fields
}
ItemRepo stores item models in local memory.
func NewItemRepo ¶
func NewItemRepo() *ItemRepo
NewItemRepo creates a new ItemRepo using local memory as the storage medium.
Click to show internal directories.
Click to hide internal directories.