Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
type DBClient interface {
Query(
ctx context.Context,
params *dynamodb.QueryInput,
optFns ...func(*dynamodb.Options),
) (*dynamodb.QueryOutput, error)
PutItem(
context.Context,
*dynamodb.PutItemInput,
...func(*dynamodb.Options),
) (*dynamodb.PutItemOutput, error)
UpdateItem(
context.Context,
*dynamodb.UpdateItemInput,
...func(*dynamodb.Options),
) (*dynamodb.UpdateItemOutput, error)
}
type ExampleModel ¶
type RepositoryExample ¶
type RepositoryExample struct {
// contains filtered or unexported fields
}
func (RepositoryExample) Create ¶
func (r RepositoryExample) Create(ctx context.Context, m ExampleModel) error
func (RepositoryExample) Read ¶
func (r RepositoryExample) Read(ctx context.Context, id string) (ExampleModel, error)
func (RepositoryExample) Update ¶
func (r RepositoryExample) Update(ctx context.Context, m ExampleModel) error
Click to show internal directories.
Click to hide internal directories.