dynamoDB

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cfg aws.Config, tableName string)

func CreateMovie

func CreateMovie(cfg aws.Config, tableName string)

func Delete

func Delete(cfg aws.Config, tableName string) error

func Get

func List added in v0.0.3

func Put

func Put(cfg aws.Config, tableName string, av map[string]types.AttributeValue) (*dynamodb.PutItemOutput, error)

Types

type D added in v0.0.3

type D struct {
	// contains filtered or unexported fields
}

func NewD added in v0.0.3

func NewD() *D

func (*D) List added in v0.0.3

func (d *D) List() (*dynamodb.ListTablesOutput, error)

type Doc

type Doc struct {
	Location string `json:"PK"`
	AWS      string `json:"PK"`
}

type Item

type Item struct {
	Year   int     `json:"Year"`
	Title  string  `json:"Title"`
	Plot   string  `json:"Plot"`
	Rating float64 `json:"Rating"`
	Status string  `json:"Status"`
}

type PKSK

type PKSK struct {
	PK     string `json:"PK"`
	SK     string `json:"SK"`
	Status string `json:"Status"`
	Doc    Doc    `json:"Doc"`
}

Jump to

Keyboard shortcuts

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