Versions in this module Expand all Collapse all v1 v1.1.4 Jul 21, 2023 Changes in this version + type Client struct + func (client *Client) CreateTable(name string) (string, error) + func (client *Client) DeleteItem(table string, id int) error + func (client *Client) DeleteTable(name string) error + func (client *Client) GetItem(table string, id int) (string, error) + func (client *Client) ListTables(startTable string) (*dynamodb.ListTablesOutput, error) + func (client *Client) PutItem(table string, item *Item) error + func (client *Client) Scan(table string, lastEvaluatedKey int, createdAt string) (*dynamodb.ScanOutput, error) + func (client *Client) UpdateItem(table string, item *Item) error + type IClient interface + CreateTable func(name string) (string, error) + DeleteItem func(table string, id int) error + DeleteTable func(name string) error + GetItem func(table string, id int) (string, error) + ListTables func(startTable string) (*dynamodb.ListTablesOutput, error) + PutItem func(table string, item *Item) error + Scan func(table string, lastEvaluatedKey int, createdAt string) (*dynamodb.ScanOutput, error) + UpdateItem func(table string, item *Item) error + func New(config *config.AWS) (IClient, error) + type Item struct + CreatedAt string + Id int + Title string