dynamodb

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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, groupMembersTable string) error

CreateTables provisions the chats, dm_inbox, and group_members 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; group_members is keyed by (pk, sk) = (chat, user) with an inverted GSI for listing a user's group chats and a sparse GSI enumerating a group's joined members by join time. It is idempotent and blocks until all tables are ACTIVE.

func NewInDynamoDB

func NewInDynamoDB(client *dynamodb.Client, chatsTable, dmInboxTable, groupMembersTable 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