Versions in this module Expand all Collapse all v0 v0.2.2 May 29, 2022 Changes in this version + func NewmockDynamodbClient(ctrl *gomock.Controller) *mockDynamodbClient + type DynamodbClient interface + DeleteItem func(ctx context.Context, params *dynamodb.DeleteItemInput, ...) (*dynamodb.DeleteItemOutput, error) + GetItem func(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error) + PutItem func(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error) + UpdateItem func(ctx context.Context, params *dynamodb.UpdateItemInput, ...) (*dynamodb.UpdateItemOutput, error) + type ItemRepo struct + func NewItemRepo(cfg *config.Config, driver DynamodbClient) *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)