dynamodb

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 18 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, messagesTable, pointersTable, reactionsTable string) error

CreateTables provisions the messages, message_pointers, and message_reactions tables. All use a composite (pk, sk) string key with on-demand billing. The reactions table carries the reactors_by_recency GSI for most-recent-first reactor paging; the messages table needs no secondary index — event-ordered delta reads page the evt# rows as a strongly-consistent sort-key range in the chat's own partition. The messages table has TTL enabled on attrExpiresAt so the transient cmid# idempotency markers are auto-reaped. It is idempotent: tables that already exist are left as-is. The call blocks until all tables are ACTIVE.

func NewInDynamoDB

func NewInDynamoDB(client *dynamodb.Client, messagesTable, pointersTable, reactionsTable string) messaging.Store

NewInDynamoDB returns a messaging.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