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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(ctx context.Context, client *dynamodb.Client, table string) error

CreateTable provisions the blocklist table with on-demand billing. It is keyed by (pk, sk) with two GSIs: one ordering each owner's blocklist by blocked_at, and its reverse listing everyone who has blocked a given user. It is idempotent and blocks until the table is ACTIVE.

func NewInDynamoDB

func NewInDynamoDB(client *dynamodb.Client, table string) blocklist.Store

NewInDynamoDB returns a blocklist.Store backed by the given DynamoDB table. Use CreateTable to provision it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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