Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewItemRepoDynamoDB ¶
func NewItemRepoLocal ¶
Types ¶
type ItemRepo ¶
type ItemRepo interface { Get(ctx context.Context, id string) (domain.Item, error) Create(ctx context.Context, it domain.Item) (domain.Item, error) Update(ctx context.Context, id string, updates domain.Item) (domain.Item, error) Delete(ctx context.Context, id string) error }
ItemRepo defines the interface by which services can interact with a storage medium that stores the model for an Item.
Click to show internal directories.
Click to hide internal directories.