Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct { Description string `json:"description,omitempty"` Location string `json:"location,omitempty"` Quantity int `json:"quantity,omitempty"` }
Details of the item
type Item ¶
type Item struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Details Details `json:"details,omitempty"` }
Item structure
type Repo ¶
type Repo struct { Client dynamodbiface.DynamoDBAPI TableName string }
Repo provides DynamoDB client capabilities
func Repository ¶
Repository returns a configured DynamoDB client
Click to show internal directories.
Click to hide internal directories.