Documentation ¶
Index ¶
- Variables
- func DefaultDefinitions() []*dynamodb.AttributeDefinition
- func DefaultGSIConfiguration() []*dynamodb.GlobalSecondaryIndex
- func DefaultKeySchema() []*dynamodb.KeySchemaElement
- func SetupTestTable(parentCtx context.Context, t *testing.T, tableName string, schema Schema) (string, *dynamodb.DynamoDB)
- type Schema
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultThroughput = &dynamodb.ProvisionedThroughput{ ReadCapacityUnits: aws.Int64(25), WriteCapacityUnits: aws.Int64(25), }
DefaultThroughput includes some basic throughput capacity
Functions ¶
func DefaultDefinitions ¶
func DefaultDefinitions() []*dynamodb.AttributeDefinition
DefaultDefinitions contains all the default attribute definitions
func DefaultGSIConfiguration ¶
func DefaultGSIConfiguration() []*dynamodb.GlobalSecondaryIndex
DefaultGSIConfiguration contains some generic GSI keys
func DefaultKeySchema ¶
func DefaultKeySchema() []*dynamodb.KeySchemaElement
DefaultKeySchema includes a default PK, SK based key schema
Types ¶
type Schema ¶
type Schema struct { KeySchema []*dynamodb.KeySchemaElement Attrs []*dynamodb.AttributeDefinition GSI []*dynamodb.GlobalSecondaryIndex }
Schema represents a dynamodb schema
Click to show internal directories.
Click to hide internal directories.