Documentation ¶
Overview ¶
Package dynamodb supports randomizer storage in an Amazon DynamoDB table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FactoryFromEnv ¶
FactoryFromEnv returns a store.Factory whose stores are backed by Amazon DynamoDB.
AWS configuration is read as described at https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a store backed by a pre-existing Amazon DynamoDB table.
The DynamoDB table used by a Store must have a composite primary key, with a partition key named "Partition" and a sort key named "Group", both string-valued. Items in each row are stored in a string set attribute named "Items".
func New ¶
New creates a new store, backed by the provided DynamoDB client, that writes groups into the provided table using the provided partition key. See the Store documentation for details.