Documentation ¶
Index ¶
- Constants
- type Index
- type Item
- type ItemID
- type Key
- type Partition
- type Table
- func (t *Table) DeleteItemByID(itemID ItemID) error
- func (t *Table) DeleteItemByInput(input interface{}) error
- func (t *Table) DeleteItemByKey(key Key) error
- func (t *Table) GetItemByID(itemID ItemID) (Item, error)
- func (t *Table) GetItemByInput(input interface{}) (Item, error)
- func (t *Table) GetItemByKey(key Key) (Item, error)
- func (t *Table) KeyFromInput(input interface{}) Key
- func (t *Table) Lock()
- func (t *Table) PutItemByInput(input interface{}) error
- func (t *Table) PutItemByKey(key Key, item Item) error
- func (t *Table) Unlock()
Constants ¶
View Source
const EmptySortKeyField string = ""
View Source
const NilSortKey string = ""
View Source
const PrimaryIndex string = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item map[string]*dynamodb.AttributeValue
type Table ¶
type Table struct { Mutex *sync.Mutex // Table level lock Items map[ItemID]Item // The items in the table PrimaryIndex *Index // The primary/default index for the table SecondaryIndices map[string]*Index // All secondary indexes for the table }
func (*Table) DeleteItemByID ¶
func (*Table) DeleteItemByInput ¶
func (*Table) DeleteItemByKey ¶
func (*Table) GetItemByInput ¶
func (*Table) KeyFromInput ¶
func (*Table) PutItemByInput ¶
Click to show internal directories.
Click to hide internal directories.