Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawLastEvaluatedKey ¶
func RawLastEvaluatedKey(m map[string]interface{}) map[string]types.AttributeValue
RawLastEvaluatedKey converts the generic map back to DynamoDB attribute values. This is used for pagination continuations.
Types ¶
type AttributeDefinition ¶
AttributeDefinition describes an attribute's name and type.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the DynamoDB API for table and item operations.
func (*Client) DescribeTable ¶
DescribeTable returns detailed information about a table.
type DynamoDBAPI ¶
type DynamoDBAPI interface {
ListTables(ctx context.Context, params *dynamodb.ListTablesInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ListTablesOutput, error)
DescribeTable(ctx context.Context, params *dynamodb.DescribeTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DescribeTableOutput, error)
Scan(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)
}
DynamoDBAPI captures the AWS SDK methods we use.
type IndexDescription ¶
IndexDescription describes a Global Secondary Index.
type ScanResult ¶
ScanResult contains the result of a Scan operation.
type TableDescription ¶
type TableDescription struct {
Name string
Status string
ItemCount int64
TableSizeBytes int64
CreationDateTime time.Time
KeySchema []KeySchema
AttributeDefinitions []AttributeDefinition
BillingMode string
ReadCapacity int64
WriteCapacity int64
GlobalSecondaryIndexes []IndexDescription
}
TableDescription contains detailed metadata about a DynamoDB table.
Click to show internal directories.
Click to hide internal directories.