appdynamodb

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTableIfNecessary

func CreateTableIfNecessary(ctx context.Context, table string, client *dynamodb.Client, localDynamodb bool) error

CreateTableIfNecessary creates the table if it doesn't exist ; or update it.

func MediaPrimaryKeyPK

func MediaPrimaryKeyPK(owner string, id string) string

MediaPrimaryKeyPK is the PK of a media, used to regroup media related information together

func UserPk

func UserPk(userEmail usermodel.UserId) string

UserPk is the PK of a user, used to regroup user related information together

Types

type TablePk

type TablePk struct {
	PK string // PK is the Partition key ; see what's used depending on object types
	SK string // SK is the Sort key ; see what's used depending on object types
}

TablePk are the primary and sort keys of the table

func (TablePk) ToAttributes added in v1.6.4

func (pk TablePk) ToAttributes() map[string]types.AttributeValue

Jump to

Keyboard shortcuts

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