Documentation ¶
Overview ¶
Package dynamodb is a generated GoMock package.
Index ¶
- func NewmockDynamodbClient(ctrl *gomock.Controller) *mockDynamodbClient
- type DynamodbClient
- 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 ¶
func NewmockDynamodbClient ¶
func NewmockDynamodbClient(ctrl *gomock.Controller) *mockDynamodbClient
NewmockDynamodbClient creates a new mock instance.
Types ¶
type DynamodbClient ¶
type DynamodbClient interface { GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error) }
type ItemRepo ¶
type ItemRepo struct {
// contains filtered or unexported fields
}
func NewItemRepo ¶
func NewItemRepo(cfg *config.Config, driver DynamodbClient) *ItemRepo
Click to show internal directories.
Click to hide internal directories.