daoImpl

package
v0.0.0-...-e1a3ad1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserDao

func NewUserDao(client *dynamodb.Client) dao.UserDao

Types

type IndexAttributes

type IndexAttributes struct {
	PK string `dynamodbav:"pk"`
	SK string `dynamodbav:"sk"`
}

type UserItem

type UserItem struct {
	models.User
	IndexAttributes
}

func (UserItem) GetKey

func (user UserItem) GetKey() map[string]types.AttributeValue

GetKey returns the composite primary key of the user in a format that can be sent to DynamoDB.

Jump to

Keyboard shortcuts

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