dynamodb

package
v1.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(ctx context.Context, client *dynamodb.Client, pollsTable, votesTable string) error

CreateTables provisions the polls and poll_votes tables with on-demand billing (see store for their layout), and enables TTL on the polls table's expires_at, which discards unsent polls. It is idempotent and blocks until both tables are ACTIVE.

func NewInDynamoDB

func NewInDynamoDB(client *dynamodb.Client, pollsTable, votesTable string) poll.Store

NewInDynamoDB returns a poll.Store backed by the given DynamoDB tables. Use CreateTables to provision them.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL