table

package
v0.0.0-...-518fa3f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable() (*dynamodb.CreateTableOutput, error)

func GetItem

func GetItem(item Item) error

func PutItem

func PutItem(i Item) error

Types

type Item

type Item interface {
	MakePK() string // Constructs the item's partition (HASH) key.
	MakeSK() string // Constructs the item's sort (RANGE) key.
	Init()          // sets item.PK and item.SK
}

Item is an interface for items that go in the table.

Jump to

Keyboard shortcuts

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