Documentation
¶
Overview ¶
Package dynamodb implements the reference DynamoDB idempotency protocol.
Index ¶
- type Client
- type Options
- type Store
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) (idempotency.Record, error)
- func (s *Store) Put(ctx context.Context, record idempotency.Record, now time.Time) error
- func (s *Store) Update(ctx context.Context, record idempotency.Record) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
PutItem(context.Context, *sdk.PutItemInput, ...func(*sdk.Options)) (*sdk.PutItemOutput, error)
GetItem(context.Context, *sdk.GetItemInput, ...func(*sdk.Options)) (*sdk.GetItemOutput, error)
UpdateItem(context.Context, *sdk.UpdateItemInput, ...func(*sdk.Options)) (*sdk.UpdateItemOutput, error)
DeleteItem(context.Context, *sdk.DeleteItemInput, ...func(*sdk.Options)) (*sdk.DeleteItemOutput, error)
}
type Options ¶
type Options struct {
TableName string
KeyAttribute, SortKeyAttribute, StaticPartitionKey string
StatusAttribute, ExpiryAttribute, InProgressExpiryAttribute string
DataAttribute, ValidationAttribute string
}
Options maps the reference attribute names. A sort key enables a static partition key, defaulting to idempotency#<AWS_LAMBDA_FUNCTION_NAME>.
Click to show internal directories.
Click to hide internal directories.