Documentation ¶
Index ¶
- func New() *dynamodb.DynamoDB
- type API
- func (a *API) IsEnabled() bool
- func (a *API) PutItem(ctx aws.Context, table string, item map[string]*dynamodb.AttributeValue) (resp *dynamodb.PutItemOutput, err error)
- func (a *API) Query(ctx aws.Context, table, partitionKey, sortKey, keyConditionExpression string, ...) (resp *dynamodb.QueryOutput, err error)
- func (a *API) Setup()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
Client dynamodbiface.DynamoDBAPI
}
API wraps a DynamoDB client interface
func (*API) PutItem ¶
func (a *API) PutItem(ctx aws.Context, table string, item map[string]*dynamodb.AttributeValue) (resp *dynamodb.PutItemOutput, err error)
PutItem is a convenience wrapper for executing the PutItem API on DynamoDB.table
Click to show internal directories.
Click to hide internal directories.