Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item interface { GetPK() *string // Get the partition key GetSK() *string // Get the sort key Keys() map[string]*dynamodb.AttributeValue // Get the DynamoDB keys (PK and SK) ToItem() map[string]*dynamodb.AttributeValue // Get the DynamoDB item FromItem(item map[string]*dynamodb.AttributeValue) Item // Get the Item from the DynamoDB item }
Item is an abstract type for DynamoDB items
type User ¶
User is a struct that implements the Item interface
func (User) FromItem ¶
func (user User) FromItem(item map[string]*dynamodb.AttributeValue) Item
FromItem returns the UserItem from the DynamoDB Item
Click to show internal directories.
Click to hide internal directories.