dynamodb

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 14 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, chatsTable, dmInboxTable string) error

CreateTables provisions the chats and dm_inbox tables with on-demand billing. The chats table is keyed by pk only; dm_inbox is keyed by (pk, sk) with a GSI ordering each user's DMs by last_activity. It is idempotent and blocks until both tables are ACTIVE.

func NewInDynamoDB

func NewInDynamoDB(client *dynamodb.Client, chatsTable, dmInboxTable string) chat.Store

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